Sent by Christian Montoya on 1 February 2006 19:07
On 2/1/06, Lori Hylan-Cho [EMAIL-REMOVED]> wrote:
> Since the spec says that when clear
> is applied, "the top margin of the generated box is increased enough that
> the top border edge is below the bottom outer edge of any [left|right]
> floating boxes that resulted from elements earlier in the source document",
> should applying a negative margin to the clearing element have any effect?
The way the spec puts it, it sounds like doing a clear basically gives
the box a top margin "auto" equal to the height of the box it's
clearing. Changing that margin to "-1px" seems like you would be
taking away the top margin, and thus would be counter intuitive?
Looking at the examples, I would say that FF 1.07 is completely off.
The negative margin puts the cleared box below the previous box, which
doesn't make sense at all; the cleared box comes later in the source
and should overlap, not under. The comparison is between IE 5/6 and
FF1.5/Opera/Safari. The former seems to be adding the margin to the
auto generated by the clear, and the latter seems to be forcing the
top margin to stay at the auto generated by the clear.
I do agree that this is too much of a gray area to call it a bug,
since it is probably due more to the way clears are implemented in the
different engines, than a misinterpretation of the specs.
I tried to comment at quirksmode, but it kept throwing errors. I gave up.
--
--
Christian Montoya
christianmontoya.com ... rdpdesign.com ... cssliquid.com
______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/