W3C home > Mailing lists > Public > www-style@w3.org > January 2013

Re: [CSS21] Does 'clear' apply to caption box? (corrected link)

From: Gérard Talbot <www-style@gtalbot.org>
Date: Mon, 7 Jan 2013 15:16:25 -0500
Message-ID: <a1949aea6a5130b8f19696e2cdb95407.squirrel@ed-sh-cp3.entirelydigital.com>
To: "Anton Prowse" <prowse@moonhenge.net>
Cc: "www-style mailing list" <www-style@w3.org>

Le Lun 7 janvier 2013 10:18, Anton Prowse a écrit :
> On 15/12/2012 03:37, "Gérard Talbot" wrote:
>> Le Ven 14 décembre 2012 21:29, "Gérard Talbot" a écrit :
>>>
>>> I believe this test
>>> http://test.csswg.org/suites/css2.1/20110323/html4/clear-applies-to-015.htm
>>> may be incorrect.
>
> Hi Gérard,
>
> The test is correct.  'clear' is scoped by the block formatting context
> in which the clearing element participates, which is established by the
> table wrapper box when the clearing element is a table caption.

"
The 'clear' property does not consider floats (...) in other block
formatting contexts.
"
http://www.w3.org/TR/CSS21/visuren.html#flow-control

is probably what I missed...

which would mean that clear can/could apply to an element with its display
property set to 'table-caption'. So, at least the meta text assert isn't
completely true.


> Note that if you had two captions in a CSS-styled table (something which
> is invalid in HTML4 tables), you could float both of them left and set
> "clear:left" on the second one, to observe that 'clear' does apply to
> table captions... although it isn't a very useful design pattern so I
> don't imagine authors do it much!


17.2.1 Anonymous table objects
http://www.w3.org/TR/CSS21/tables.html#anonymous-boxes

states that an anonymous 'table' (or 'inline-table') box T must be
generated for misparented 'table-caption' box... and so, it seems, this
implies that it does not create an anonymous table wrapper box...


Anton, this is your scenario-example:
http://www.gtalbot.org/BrowserBugsSection/css21testsuite/clear-applies-to-caption-boxes-2.html

I'm still a bit confused by all this.

Gérard
-- 
CSS 2.1 Test suite RC6, March 23rd 2011
http://test.csswg.org/suites/css2.1/20110323/html4/toc.html

Contributions to CSS 2.1 test suite
http://www.gtalbot.org/BrowserBugsSection/css21testsuite/

Web authors' contributions to CSS 2.1 test suite
http://www.gtalbot.org/BrowserBugsSection/css21testsuite/web-authors-contributions-css21-testsuite.html
Received on Monday, 7 January 2013 20:16:57 GMT

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