Closed Bug 13481 Opened 25 years ago Closed 25 years ago

{css1} clear collapses margins!

Categories

(Core :: Layout, defect, P3)

x86
Windows 98
defect

Tracking

()

VERIFIED FIXED

People

(Reporter: ian, Assigned: buster)

References

()

Details

(Keywords: css1)

Giving a block a non-none value for the 'clear' property makes that element
appear directly under the previous element (or previous float, whichever is
lowest). It ignores any margins on previous siblings and itself.

For example:

   <p style="margin: 30px"> Hello </p>
   <p style="clear: both">  World </p>

...renders without the vertical whitespace expected (30px).

See http://www.bath.ac.uk/%7Epy8ieh/internet/projects/mozilla/clear.html

David: I cc'ed you again as you seem to be the reporter of all the other 'clear'
related bugs and therefore I assume you are very interested in this issue...
Assignee: troy → kipp
Status: NEW → ASSIGNED
Target Milestone: M12
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
Fixed with a checkin earlier today. I was clobbering one of my "applyTopMargin"
flags inappropriately (in this case exactly: when the child block element had
clear style!).
QA Contact: petersen → chrisd
Status: RESOLVED → VERIFIED
Using 9/28 Apprunner, verified bug fixed.
Keywords: css1
Migrating from {css1} to css1 keyword. The {css1}, {css2}, {css3} and {css-moz}
radars should now be considered deprecated in favour of keywords.
I am *really* sorry about the spam...
You need to log in before you can comment on or make changes to this bug.