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

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

From: Daniel Schattenkirchner <schattenkirchner.daniel@gmx.de>
Date: Tue, 08 Jan 2013 23:42:26 +0100
Message-ID: <50ECA0D2.8010300@gmx.de>
To: www-style@w3.org
On 08/01/2013 22:08, Anton Prowse wrote:
>> It's impossible to create a testcase to test whether clear really
>> does apply to table-captions.
>
> No, the following should work instead:
>
> <div style="display:table; width:100%">
>      <div style="display:table-caption">
>          <div style="width:20px; height:20px; float:left;"></div>
>      </div>
>      <div style="display:table-caption; clear:left;">caption</div>
> </div>

Sorry, but that won't work either.

CSS 2.1, 9.4.1: http://www.w3.org/TR/CSS2/visuren.html#block-formatting
[...], block containers (such [...] table-captions) [...] establish new 
block formatting contexts for their contents.

So Gecko is correct in this regard.

> Note that CSS21 Ch.17 is internally inconsistent on the subject of
> multiple captions, but very strongly points towards allowing multiple
> captions.

Unfortunate but true. It isn't hard to implement multiple captions and 
CSS would not prevent them from being rendered (that would be very 
strage for CSS). But I have accepted that tables simply are a mess in 
various regards.

Have a nice day.
--
Daniel Schattenkirchner
Received on Tuesday, 8 January 2013 22:42:50 GMT

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