Closed Bug 219385 Opened 21 years ago Closed 15 years ago

right floats incorrectly right of and above bottom of previous right floats

Categories

(Core :: Layout: Floats, defect, P4)

defect

Tracking

()

RESOLVED FIXED
mozilla1.9.1b3

People

(Reporter: liorean, Assigned: dbaron)

References

(Blocks 1 open bug, )

Details

(Keywords: testcase)

Attachments

(2 files)

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.5b) Gecko/20030827 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.5b) Gecko/20030827 On http://liorean.web-graphics.com/css/list/ , Moz seems to be ignoring the second assertion for floats in favor of a more compact display. Although the rendering moz uses is good looking, it is not correct. Iew, op and saf all get this correct (and ugly). The actual problem lies in that the fifth float is not allowed to be positioned above the bottom line of the fourth float, since it's not on the left side of the fourth float. If you use the DOM Inspector to change the floats from 'float: right;' to 'float: left;' you see correct handling, however. Reproducible: Always Steps to Reproduce: Expected Results: Moz should have moved the fifth float down to be below the fourth float (and the same for the other places this would be needed in.)
What does "2nd assertion" mean here?
The second rule for precise positioning of floats, see http://www.w3.org/TR/CSS2/visuren.html#propdef-float "If the current box is left-floating, and there are any left floating boxes generated by elements earlier in the source document, then for each such earlier box, either the left outer edge of the current box must be to the right of the right outer edge of the earlier box, or its top must be lower than the bottom of the earlier box. Analogous rules hold for right-floating boxes."
Yeah, what we do is wrong. Probably a duplicate though.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Blocks: float
Summary: 2nd assertion ignored for 'float: right;' → right floats incorrectly right of and above bottom of previous right floats
Unless I'm reading the rules wrong, the rendering here is correct for the fifth float. http://www.w3.org/TR/CSS21/visuren.html#float-rules 1. Yes. 2. Float 5 is below float 2, the only right-float before it in the document. 3. Float 5 is not overlapping any left-float. 4. Yes. 5. The top of Float 5 is below the tops of floats 1-4. 6. Yes. 7. Yes. 8. Yes. 9. Yes. Is there something I'm missing?
Attached image screenshot (deleted) —
This shows incorrect behavior: list 5 and list 4 are both right floats. list 5 needs to be either to the left of or below list 5.
er, to the left of or below list 4.
(In reply to comment #4) > 2. Float 5 is below float 2, the only right-float before it in the document. > Is there something I'm missing? What you're missing is that floats 3 and 4 are right floats that are before float 5.
Oh, doh. Thanks.
Assignee: layout.floats → nobody
QA Contact: ian → layout.floats
Keywords: testcase-wanted
Attached file original testcase (deleted) —
This was fixed by bug 191448 (on the basis that it got fixed on the 1.9.1 branch between nightlies 2009-02-12-01-mozilla-1.9.1 and 2009-02-12-01-mozilla-1.9.1, i.e., in http://hg.mozilla.org/releases/mozilla-1.9.1/pushloghtml?fromchange=1af81db46cc5&tochange=110384dabb87
Assignee: nobody → dbaron
Status: NEW → RESOLVED
Closed: 15 years ago
OS: Windows 2000 → All
Priority: -- → P4
Hardware: x86 → All
Resolution: --- → FIXED
Target Milestone: --- → mozilla1.9.1b3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: