Last Comment Bug 67543 - Position of abs pos element within floated rel pos containing block is incorrect. [ABS POS] [REL POS]
: Position of abs pos element within floated rel pos containing block is incorr...
Status: RESOLVED DUPLICATE of bug 210873
[Hixie-P4] important abs pos bug
: css2, testcase
Product: Core
Classification: Components
Component: Layout (show other bugs)
: Trunk
: All All
: P4 normal (vote)
: mozilla1.2alpha
Assigned To: Marc Attinasi
: Hixie (not reading bugmail)
Mentors:
: 93585 150181 (view as bug list)
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2001-02-03 03:58 PST by Val Sharp
Modified: 2014-04-26 03:18 PDT (History)
6 users (show)
See Also:
Crash Signature:
(edit)
QA Whiteboard:
Iteration: ---
Points: ---
Has Regression Range: ---
Has STR: ---


Attachments
Floated containing block - testcase (1.46 KB, text/html)
2001-02-03 03:59 PST, Val Sharp
no flags Details

Description Val Sharp 2001-02-03 03:58:24 PST
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.
Comment 1 Val Sharp 2001-02-03 03:59:52 PST
Created attachment 24305 [details]
Floated containing block - testcase
Comment 2 Hixie (not reading bugmail) 2001-02-03 09:11:03 PST
Nice test case!!!
Comment 3 Marc Attinasi 2001-02-09 13:19:15 PST
Accepting.
Comment 4 Marc Attinasi 2001-03-01 13:40:39 PST
Milestone set: Moz 1.0
Comment 5 Marc Attinasi 2001-08-16 17:31:16 PDT
*** Bug 93585 has been marked as a duplicate of this bug. ***
Comment 6 Mats Palmgren (vacation) 2002-06-08 05:27:25 PDT
*** Bug 150181 has been marked as a duplicate of this bug. ***
Comment 7 André Dahlqvist 2002-07-11 04:18:45 PDT
Not limited to Windows. OS->All.
Comment 8 Greg K. 2002-07-13 14:54:14 PDT
Reconfirmed using FizzillaCFM/2002071208. Setting Platform=All.
Comment 9 David Baron :dbaron: ⌚️UTC+2 (mostly busy through August 4; review requests must explain patch) 2003-06-28 12:28:47 PDT

*** This bug has been marked as a duplicate of 210873 ***

Note You need to log in before you can comment on or make changes to this bug.