Closed
Bug 67543
Opened 25 years ago
Closed 22 years ago
Position of abs pos element within floated rel pos containing block is incorrect. [ABS POS] [REL POS]
Categories
(Core :: Layout, defect, P4)
Core
Layout
Tracking
()
RESOLVED
DUPLICATE
of bug 210873
mozilla1.2alpha
People
(Reporter: val, Assigned: attinasi)
References
Details
(Keywords: css2, testcase, Whiteboard: [Hixie-P4] important abs pos bug)
Attachments
(1 file)
|
1.46 KB,
text/html
|
Details |
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 2•25 years ago
|
||
Nice test case!!!
Assignee: pierre → attinasi
Status: UNCONFIRMED → NEW
Component: Style System → Layout
Ever confirmed: true
Summary: Position of Absolutely positioned element, within Relatively positioned Floated containing block, is incorrect. → Position of abs pos element within floated rel pos containing block is incorrect. [ABS POS] [REL POS]
Whiteboard: [Hixie-P4] important abs pos bug
| Assignee | ||
Comment 4•25 years ago
|
||
Milestone set: Moz 1.0
Priority: -- → P4
Target Milestone: --- → mozilla1.0
Updated•24 years ago
|
Target Milestone: mozilla1.0 → mozilla1.2
Comment 6•23 years ago
|
||
*** Bug 150181 has been marked as a duplicate of this bug. ***
Reconfirmed using FizzillaCFM/2002071208. Setting Platform=All.
Hardware: PC → All
*** This bug has been marked as a duplicate of 210873 ***
Status: ASSIGNED → RESOLVED
Closed: 22 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•