Closed Bug 252838 Opened 21 years ago Closed 21 years ago

clear: right caculates potision according to floats in different block formatting context

Categories

(Core :: Layout: Floats, defect)

x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: dvrsn, Unassigned)

Details

Attachments

(1 file)

User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8a2) Gecko/20040714 (Netscape6 cmpatible) Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8a2) Gecko/20040714 (Netscape6 cmpatible) Two blocks with "float: right; clear: right" are positioned with respect to each other even when they are in different block formatting contexts. CSS2 seems vauge on this, but the CSS 2.1 spec specifically says: "The 'clear' property does not consider floats inside the element itself or in other block formatting contexts." ( http://www.w3.org/TR/CSS21/visuren.html#propdef-clear ) Mozilla 1.5 did this positioning correctly, 1.8a2 does not. Reproducible: Always Steps to Reproduce: See example. Actual Results: Red box is positioned beneath green box. Expected Results: Red and green boxes are positioned next to each other.
Attached file simple testcase
They're not in different block formatting contexts. block formatting context != block
Status: UNCONFIRMED → RESOLVED
Closed: 21 years ago
Resolution: --- → INVALID
(And what would have changed the testcase was fixing bug 148994.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: