W3C home > Mailing lists > Public > www-style@w3.org > July 2005

Re: Proposal: :column pseudo-class

From: Lachlan Hunt <lachlan.hunt@lachy.id.au>
Date: Sun, 03 Jul 2005 00:16:51 +1000
Message-ID: <42C6A1D3.6060405@lachy.id.au>
To: Laurens Holst <lholst@students.cs.uu.nl>
CC: www-style@w3.org

Laurens Holst wrote:
> I hereby propose a :column pseudo-class, which I think would be the best 
> possible way to resolve the problem that it is currently impossible to 
> reliably select a column.

How is this any different from the other proposals we've just been 
discussing here, except that yours doesn't seem to allow for an index 
like :column(n), and thus doesn't make any sense?

> The :column pseudo-class is effective on elements with ‘display’ type 
> ‘table-cell’ or ‘table-column’ or ‘table-column-group’ only...
> To avoid circular references, there is the following restriction: any 
> ‘display’ properties set on the element that is selected by the :column 
> selector is ignored (and remains table-cell). For example:

Circular references isn't the only problem with trying to select an 
element based on it's style, it's just an issue that would occur if it 
were possible to do so.  It's that the element's styles aren't even 
known until after all selectors have already been associated with the 
elements they select, and their styles applied to the element.

For any form of :column pseudo-class to work, knowing which column (or 
row) an element occurs within a table has to be able to be determined 
before, and independent of, any styles that are applied later.

Lachlan Hunt
Received on Saturday, 2 July 2005 14:16:58 UTC

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