Re: [CSS3-Values] Table cell inheritance

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"                                          /,   _.. \   _\  ;`._ ,.                         `._.-(,_..'--(,_..'`-.;.'

Received on Monday, 26 May 2003 07:53:46 UTC