W3C home > Mailing lists > Public > www-style@w3.org > December 2003

Re: Column text color

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Fri, 12 Dec 2003 11:16:28 -0600
Message-ID: <3FD9F7EC.8060205@mit.edu>
To: Chris Moschini <cmoschini@myrealbox.com>
Cc: www-style@w3.org

Chris Moschini wrote:
> The least drastic method is:
> 1) Modify nth-of-type( n ) selectors to account for colspan. That is, if I say
> td:nth-of-type(3), then it counts 3 columns over in the Table, not 3 TD tags.

This fails to address the basic issue Ian's blog entry points out, which 
is that at style resolution time you don't know anything about columns, 
colspans, or the table structure.

> 2) Allow columns to be introduced explicitly via CSS, probably as a pseudo-class
> - such as td:column( n ) - and let this pseudo-element do the proper counting that
> accounts for colspan.

Same issue.

The problem is not that you can't select columns.  Methods to do that 
can be added, as you pointed out.  The problem is that the CSS 
processing model simply does not handle this situation.  It could 
perhaps be modified to do so, but that's a much more fundamental change 
than simply adding a new selector and may well require significant 
rewrites of all existing CSS implementations (it would violate one of 
the existing fundamental invariants, which is that style resolution does 
not depend on the results of said resolution).

Received on Friday, 12 December 2003 12:20:03 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:27:10 UTC