W3C home > Mailing lists > Public > www-style@w3.org > October 2007

Re: cell inherit style properties from its column

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Wed, 17 Oct 2007 10:28:12 -0500
Message-ID: <47162A0C.8010202@mit.edu>
To: Eugen.Konkov@aldec.com
CC: www-style@w3.org

Eugen.Konkov@aldec.com wrote:
>  >http://ln.hixie.ch/?start=1070385285&count=1
>  >ince you have to take into account what cells span several columns, etc.
> cells can span several rows too
> As you see in an attachment. Background works fine. So you know which 
> cell is in which column on stage 2!

No.  Backgrounds are painted in stage 4, and they are _all_ painted.  That is, 
the column background is painted, and so (separately) is the cell background. 
You can see this easily if you give the cell in your example a non-opaque 
background.

See also http://www.w3.org/TR/CSS21/tables.html#table-layers for more 
information on how table element backgrounds are painted.

> So there is no problem to inherit style for cells from columns.

This would be an incorrect conclusion (mostly because  derived from incorrect 
assumptions).

-Boris
Received on Wednesday, 17 October 2007 15:28:29 GMT

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