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

Re: [CSS21] The 'clear' property on table wrappers.

From: Gérard Talbot <www-style@gtalbot.org>
Date: Tue, 5 Jun 2012 17:08:34 -0400
Message-ID: <f011d0e08cb401a66adf3417031be8b6.squirrel@ed-sh-cp3.entirelydigital.com>
To: "Simon Sapin" <simon.sapin@kozea.fr>
Cc: "CSS 3 W3C Group" <www-style@w3.org>

Le Mar 5 juin 2012 12:11, Simon Sapin a écrit :
> Hi,
>
> Elements with 'display: table' generate two boxes: a table wrapper box
> and a table box.
>
> 17.4 explains how the computed values on the element are distributed to
> the two boxes:
>
>> The computed values of properties 'position', 'float', 'margin-*',
>> 'top', 'right', 'bottom', and 'left' on the table element are used on
>> the table wrapper box and not the table box;

If float can be used on the table wrapper box, then it seems to me to be
natural, consequent and coherent to expect clear to be used on it as well.


all other values of
>> non-inheritable properties are used on the table box and not the
>> table wrapper box.
>
> In a previous email, I already reported that 'z-index' should be added
> to the list of properties that are used on the table wrapper box and not
> the table box. I just found that this is the case for 'clear' as well:
>
> If 'clear' is to have an effect, the table and its captions (if any)
> should stay together and not be separated by clearance.

We have at least one test (I'm searching for more tests right now) on it:

http://test.csswg.org/suites/css2.1/nightly-unstable/html4/clear-applies-to-013.htm

and it would seem to me to be insufficient as coded: we would need such
table to have at least one non-emtpy table caption to make such test a bit
more reliable, trustworthy, truly testing what the test originally,
initially wanted to test.

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 Tuesday, 5 June 2012 21:09:10 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:55 GMT