W3C home > Mailing lists > Public > www-style@w3.org > December 2012

[CSS21] inline span with clear

From: Philippe Wittenbergh <ph.wittenbergh@l-c-n.com>
Date: Wed, 26 Dec 2012 21:38:14 +0900
Message-Id: <79E5A417-5EF4-4553-A0C0-1FD4D8F08BE3@l-c-n.com>
To: W3C CSS Mailing List <www-style@w3.org>
The last example in the spec uses an inline element (span) and applies the clear property to it. – the example then goes to show the span clearing the floated block:
http://www.w3.org/TR/CSS2/visuren.html#comp-float

However, higher up on the same page, the spec states, for the ‘applies to’ line: ‘block-level elements’ (a <span> is an inline element):
http://www.w3.org/TR/CSS21/visuren.html#flow-control

I think the example is wrong. Current Gecko, WebKit, Presto and iirc IE 9+ all agree and do not apply any clearance.


Philippe
--
Philippe Wittenbergh
http://l-c-n.com
Received on Wednesday, 26 December 2012 12:38:39 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:21:03 GMT