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.

Take:

   <block>
    <table>
     <table-column/>
     <table-cell> TEST </table-cell>
    </table>
   </block>

...and:

   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
pseudo-elements?


Here's another example:

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

   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.

   <table>
    <col/>
    <tbody>
     <tr>
      <td> TEST </td>
     </tr>
    </tbody>
   </table>

...with:

   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