Closed Bug 254802 Opened 21 years ago Closed 21 years ago

Left float after two or more right floats, is positioned at the same height as the last right float

Categories

(Core :: Layout: Floats, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: martijn.martijn, Unassigned)

References

Details

Attachments

(1 file)

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8a3) Gecko/20040808 Firefox/0.9.1+ Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8a3) Gecko/20040808 Firefox/0.9.1+ See upcoming testcase: Basically the problem is this: <div class="RightBlock">float:right;clear:right;</div> <div class="RightBlock">float:right;clear:right;</div> <div class="LeftBlock">float:left;</div> This should result in (afaik): ------------------------- ------------------------- |float:left; | |float:right;clear:right; | | | | | ------------------------- ------------------------- ------------------------- |float:right;clear:right; | | | ------------------------- Not in: ------------------------- |float:right;clear:right; | | | ------------------------- ------------------------- ------------------------- |float:left; | |float:right;clear:right; | | | | | ------------------------- ------------------------- As what Mozilla is currently doing: Reproducible: Always Steps to Reproduce: 1. See testcase and details above. 2. 3.
Attached file Testcase
Summary: Left floater after two or more right floaters, is positioned at the same height as the last right floater → Left float after two or more right floats, is positioned at the same height as the last right float
CSS2.1, section 9.5.1, rule 5: 5. The outer top of a floating box may not be higher than the outer top of any block or floated box generated by an element earlier in the source document. [...] References to other elements in these rules refer only to other elements in the same block formatting context as the float. http://www.w3.org/TR/CSS21/visuren.html#float-position
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → INVALID
*** Bug 318256 has been marked as a duplicate of this bug. ***
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: