W3C home > Mailing lists > Public > www-style@w3.org > July 2010

[CSS 2.1] [section 9.5 Floats] Empty floated element with a set width but height:0

From: Gérard Talbot <www-style@gtalbot.org>
Date: Thu, 29 Jul 2010 21:53:06 -0700
Message-ID: <b4f819cc310ff569492379b4e4b41ce4.squirrel@cp3.shieldhost.com>
To: www-style@w3.org
Hello all,

Does an empty floated element with a set width occupy an horizontal space
on a line?



According to Ian Hickson, div#zero-height-first-float should occupy an
horizontal space (6em) on the line... but all mainstream browsers (IE8,
Firefox 3.6.8, Opera 10.60, Chrome 5.0, Safari 5.0, Konqueror 4.4.5) do
not allocate an horizontal space to that div#zero-height-first-float .
Now, I can not find where it would say in the spec that such horizontal
space should not be allocated to that div#zero-height-first-float.

This was the original idea of Ian Hickson's test (floats-107.htm [1])
until it was decided to remove such test (for other reasons) from the CSS
2.1 test suite. I think it would be best to establish if an empty floated
element with a set width is supposed to occupy an horizontal space on a
line to begin with according to the spec (and where in the spec).

[1]: http://test.csswg.org/suites/css2.1/20100727/html4/floats-107.htm

regards, Gérard
CSS 2.1 Test suite beta 2 (July 27th 2010)

Contributions to CSS 2.1 test suite

Web authors' contributions to CSS 2.1 test suite
Received on Friday, 30 July 2010 19:42:05 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:38:37 UTC