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

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

From: Simon Sapin <simon.sapin@kozea.fr>
Date: Sat, 16 Jun 2012 13:13:05 +0200
Message-ID: <4FDC6A41.1030109@kozea.fr>
To: Anton Prowse <prowse@moonhenge.net>
CC: CSS 3 W3C Group <www-style@w3.org>, "L. David Baron" <dbaron@dbaron.org>, Gérard Talbot <www-style@gtalbot.org>
Le 16/06/2012 12:20, Anton Prowse a écrit :
> That said, in a world where properties can only act on one or other of
> the two boxes, the use case for having 'clear' (and 'z-index') act on
> the table wrapper box is a lot stronger than that for having it act on
> the table box!

To follow up on this: I made the change in WeasyPrint and add these to 
the list that applies to table wrappers.

clear, counter-increment, counter-reset, opacity, page-break-before, 
page-break-after, page-break-inside, transform, transform-origin, 
vertical-align, z-index.

(I would also include backface-visibility as suggested by David, but we 
do not have 3D transforms.)

Note that line-height does not need to be in this list as it is 
inherited. Actually what to do with inherited properties is implicit in 
the spec. Here is how I interpret it:

The table wrapper box and table box are either both generated from the 
same table element, or are both anonymous. When there is a table element:

* Both boxes get the element’s computed value for properties that are
   inherited
* The table wrapper box gets the element’s computed value for
   properties in the list mentioned above, the initial value for
   other properties
* The table box gets the initial value for properties in the list
   mentioned above, the element’s computed values for other properties

The main difference between the two boxes are the captions, which are 
children of the table element: this should be a guiding principle to 
decide which properties to include in the list. In particular, I think 
that properties that affect their descendants through means other than 
inheritance (like opacity) should be included.

-- 
Simon Sapin
Received on Saturday, 16 June 2012 11:13:36 GMT

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