W3C home > Mailing lists > Public > www-style@w3.org > April 2004

RE: Styling table columns--why so limited?

From: Ian Hickson <ian@hixie.ch>
Date: Mon, 5 Apr 2004 16:56:42 +0000 (UTC)
To: Matthew.van.Eerde@hbinc.com
Cc: www-style@w3.org
Message-ID: <Pine.LNX.4.58.0404051652220.10470@dhalsim.dreamhost.com>

On Mon, 5 Apr 2004 Matthew.van.Eerde@hbinc.com wrote:
>
> And the CSS as such:
> /* either */
> #ian td[column=~2] { display: none; }

But that doesn't make sense: How can a td be in a column, if it isn't a
table-cell?

If you have:

   <a>
    <b/>
    <c/>
    <b/>
   </a>

...and:

   a { display: table; }
   b { display: table-cell; }
   c { display: block; }

...then there are three columns (according to CSS2). But you can't know
this when you do the cascade, you only know it _after_ you have done the
cascade. So then:

   b[column=3] { color: blue; }

...could never be matched, since you need to know that _before_ the
cascade.

-- 
Ian Hickson                                      )\._.,--....,'``.    fL
U+1047E                                         /,   _.. \   _\  ;`._ ,.
http://index.hixie.ch/                         `._.-(,_..'--(,_..'`-.;.'
Received on Monday, 5 April 2004 12:57:04 GMT

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