W3C home > Mailing lists > Public > www-style@w3.org > November 2002

Being clear about clear

From: Tom Gilder <tom@tom.me.uk>
Date: Tue, 19 Nov 2002 22:55:11 +0000
Message-ID: <41175338545.20021119225511@tom.me.uk>
To: www-style@w3.org

Browser implementations of the clear property seem to massively differ
from the CSS 2 specification, which seems to sort-of contradict
itself. It first says at 9.5.2[1]:

  "This property indicates which sides of an element's box(es) may
  not be adjacent to an earlier floating box."

But then goes on to say for the "both" value:

  "The generated box is moved below all floating boxes of earlier
  elements in the source document."

So which should it be? Just adjacent boxes or all previous floating
boxes? From my tests, both IE6 and Gecko only clear adjacent boxes. Opera
sometimes does and sometimes doesn't.

Only clearly adjacent boxes seems to make infinitely more sense to me,
so may I suggest the wording be changed in CSS 2.1?

 [1] http://www.w3.org/TR/REC-CSS2/visuren.html#flow-control

Tom Gilder
Received on Tuesday, 19 November 2002 17:55:20 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:27:04 UTC