Closed Bug 150181 Opened 22 years ago Closed 22 years ago

setting float property of relative positioned DIV messes up elements positioned absolute inside the DIV

Categories

(Core :: DOM: CSS Object Model, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 67543

People

(Reporter: sk, Assigned: jst)

References

()

Details

Build 2002052908 
Windows 2000 Server

Related docs
-http://www.w3.org/TR/REC-CSS2/visuren.html#positioning-scheme
-Maybe bug 1289

The above url links to 2 test cases. Both consist of 2 nested DIV elements. The
outer div (yellow border) has positioning relative and the inner (red border)
absolute with offsets to put it inside the yellow div. 

The difference is that in the "wrong" link, the yellow DIV has also float:left. 

I expected 
both test cases to produce the same layout (a red box inside a yellow box)

Actual
in the "wrong" link, the red DIV is positioned based on the document instead of
the yellow DIV.

I read the above mentioned w3 document and it only says that float can not be
used with absolute positioned elements. In my case it is used with the relative
positioned DIV, so I don't understand why it should not layout the same as with
the case without float.

Internet Explorer 5.01 shows both cases the same way.

*** This bug has been marked as a duplicate of 67543 ***
Status: UNCONFIRMED → RESOLVED
Closed: 22 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.