W3C home > Mailing lists > Public > www-style@w3.org > July 2005

Re: [CSS21] properties for table-column (In HTML: COL) & table-column-group (In HTML: COLGROUP) items.

From: Lachlan Hunt <lachlan.hunt@lachy.id.au>
Date: Sat, 02 Jul 2005 14:38:04 +1000
Message-ID: <42C61A2C.4030605@lachy.id.au>
To: www-style@w3.org

I wrote:
> Also, I think a pseudo element like this would be nice to have.
> table::column(an+b)
> It could generate table-column boxes much like an element with display: 
> table-column; applied. eg. the <col> element in HTML...

Having thought about this idea a little more, it seems completely 
unnecessary.  Correct me if I'm wrong, but I believe this should have 
the same effect:

table>:not(col):not(colgroup):first-child::before {
   display: table-column;
   background-color: green;
table>:not(col):not(colgroup):first-child::before(2) {
   display: table-column;
   background-color: blue;

Although ::before doesn't seem to work on elemenents styled with 
'display: table-*' in Firefox or Opera, I couldn't find anything in the 
specs that says ::before doesn't apply to such elements.

Lachlan Hunt
Received on Saturday, 2 July 2005 06:30:37 UTC

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