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

Column pseudo-class: a proposal

From: Etan Wexler <ewexler@stickdog.com>
Date: Wed, 12 Jun 2002 14:24:36 -0700
To: www-style@w3.org
Message-ID: <3D0759A4.29568.81B6BF@localhost>
Message-ID: <column-selectors-proposal@d2002-06-12.etan.wexler>

The CSS3 Text module (<http://www.w3.org/TR/2002/WD-css3-text-
20020515>) notes that "The 'writing-mode' and 'direction' properties, 
when specified for table column elements, are not inherited by cells in 
the column [...]. Thus, CSS cannot easily capture the "dir" attribute 
inheritance rules described in [[HTML4.01], section 11.3.2. "

This problem affects all other properties, as well.

The solution is a pseudo-class that selects 'table-cell' elements by 
matching the column in which the 'table-cell' elements reside.

Consider the following example.

th:in-column(colgroup.totals > col)

Details like the pseudo-class's name, specificity, and applicability are 
open for discussion.

-- 
Etan Wexler <mailto:ewexler@stickdog.com>
Received on Wednesday, 12 June 2002 17:22:01 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:14 GMT