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

Re: [CSS3-Values] Table cell inheritance

From: Ian Hickson <ian@hixie.ch>
Date: Mon, 26 May 2003 04:55:21 -0700 (PDT)
To: Ernest Cline <ernestcline@mindspring.com>
Cc: "www-style@w3.org" <www-style@w3.org>
Message-ID: <Pine.LNX.4.50.0305260424190.30537-100000@dhalsim.dreamhost.com>

On Sun, 25 May 2003, Ernest Cline wrote:
> I don't see the problem myself.

Assume that any elements in the example below have 'display' values equal
to their tag names.


     <table-cell> TEST </table-cell>


   block { color: green; }
   table-colum { color: red; }
   table-cell { color: table-inherit; }
   table-cell::outside { display: block; }

What color is the cell?

How do you know, without attempting a full layout including

Here's another example:

    <table-cell> TEST </table-cell>

   table-column:nth-child(1) { color: red; }
   table-column:nth-child(2) { color: red; }
   table-column:nth-child(3) { color: green; }

   table-cell:nth-of-type(1) { col-span: 2; }
   table-cell:nth-of-type(2) { color: table-inherit; }

Without having actually implemented and used the table layout algorithm,
how do you know which column the second cell is in?

> 1) Which table superiors (table-row, table-(row|head|foot)-group, table-
> column, table-column-group, and table) a table-cell has is determined by
> markup.

This isn't the case.

      <td> TEST </td>


   tbody { display: table; }
   tr::before { display: table-column; }

Here the markup doesn't have any control over the relationship between the
cell and the column.

I agree that some solution would be useful. I just haven't seen or thought
of a decent workable one.

Ian Hickson                                      )\._.,--....,'``.    fL
"meow"                                          /,   _.. \   _\  ;`._ ,.
http://index.hixie.ch/                         `._.-(,_..'--(,_..'`-.;.'
Received on Monday, 26 May 2003 07:53:46 UTC

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