Closed Bug 707 Opened 26 years ago Closed 26 years ago

CSS clear attribute not working

Categories

(Core :: CSS Parsing and Computation, defect, P2)

x86
Windows NT
defect

Tracking

()

VERIFIED FIXED

People

(Reporter: unapersson, Assigned: buster)

References

()

Details

Clear attribute does not move text past floated HTML elements, i.e. div. As an example the following simple HTML fragment with two floated divs: <div style="float: left; width: 50%; color: #000000; background: #c0c0c0;"><p>Left</p></div> <div style="float: right; width: 50%; color: #ffffff; background: #000000;"><p>Right</p></div> <p style="clear: both; text-align: center;">New Line of Text</p>
Assignee: peterl → troy
Looks like the clear attribute is getting into the style context. Layout seems to be ignoring it.
Assignee: troy → kipp
Status: NEW → ASSIGNED
A further example is http://www.w3.org/Style/CSS/Test/current/sec5526.htm However, in this page, there seems to be some interesting behavior in that the paragraph that doesn't have clear is moved up.&#137;
Status: ASSIGNED → RESOLVED
Closed: 26 years ago
Resolution: --- → FIXED
I just checked in a fix; it should show up in the next public build
QA Contact: 4137
Status: RESOLVED → VERIFIED
Works fine in the 09-March build.
You need to log in before you can comment on or make changes to this bug.