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

Re: Proposal: :column pseudo-class

From: Orion Adrian <orion.adrian@gmail.com>
Date: Sat, 2 Jul 2005 17:47:17 -0400
Message-ID: <abd6c80105070214476ccc3a54@mail.gmail.com>
To: www-style@w3.org

On 7/2/05, Ian Hickson <ian@hixie.ch> wrote:
> O> > >
> > > > The :column pseudo-class is effective on elements with display type
> > > > table-cell or table-column or table-column-group only.
> > >
> > > The cascade happens before layout. You don't know an element's display
> > > type at the time you are doing selector matching.
> >
> > Couldn't this problem simply be solved by removing the presentational
> > attributes "colspan" and "rowspan".
> 
> The problem exists independent of the existence of the attributes
> "colspan" and "rowspan".
> 
> The problem is that a cell *is not a cell yet* when doing selector
> matching. Short of doing selector matching twice (once for one set of
> properties, and then again for another set, with a required layout pass in
> between the two steps) you simply cannot have selectors that depend on
> properties. And as I explained a few days ago, doing the two-pass selector
> matching simply isn't an option, as it would be a performance nightmare.

Hence my suggestion that layout be separated from other types of
properties. Layout should be done first for many reasons. One of them
is to get around this problem. At what point to we say the current
algorithm isn't doing the job?

Orion Adrian
Received on Saturday, 2 July 2005 21:47:20 GMT

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