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.

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

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:

I'm still a bit confused by all this.

CSS 2.1 Test suite RC6, March 23rd 2011

Contributions to CSS 2.1 test suite

Web authors' contributions to CSS 2.1 test suite
Received on Monday, 7 January 2013 20:16:57 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:25 UTC