From Bugzilla Helper: User-Agent: Mozilla/4.6 [en-gb]C-CCK-MCD NetscapeOnline.co.uk (Win98; I) BuildID: 2001012020 An Absolutely Positioned element with offsets specified, e.g. 'top' and/or 'left', will not recognise a block which is both Relatively Positioned and Floated as its containing block. However, if the Absolutely positioned element has no offsets specified, i.e. auto, then it does use the relatively positioned floated block as its containing block. Reproducible: Always Steps to Reproduce: The attached testcase illustrates both these situations: Example 1 shows the Absolutely Positioned element with 'top:0px; left:0px' wrongly positioned outside the containing block. Example 2 shows that the Absolutely Positioned element, with neither 'top' nor 'left' specified, is properly contained within its containing block. Examples 3 & 4 are the same as Examples 1 & 2, except the containing block is only Relatively Positioned, not Floated, showing that it's the use of Float in the containing block that causes the problem. Expected Results: The position of the absolutely positioned element should be calculated with respect to its containing block, even if that block is floated.
Nice test case!!!
Milestone set: Moz 1.0
*** Bug 93585 has been marked as a duplicate of this bug. ***
*** Bug 150181 has been marked as a duplicate of this bug. ***
Not limited to Windows. OS->All.
Reconfirmed using FizzillaCFM/2002071208. Setting Platform=All.
*** This bug has been marked as a duplicate of 210873 ***