W3C home > Mailing lists > Public > www-style@w3.org > December 2008

Re: [CSS2.1] col attributes: XHTML and CSS inconsistency?

From: L. David Baron <dbaron@dbaron.org>
Date: Fri, 26 Dec 2008 13:13:44 -0500
To: www-style@w3.org
Message-ID: <20081226181344.GA16442@pickering.dbaron.org>

I think what we want for styling columns is a selector like
:nth-column(), taking arguments just like :nth-child() does.  It
would match any elements that were *semantically* (based on the
markup, not CSS 'display') table cells that were in the column with
the given index.  (Doing this in Mozilla is
https://bugzilla.mozilla.org/show_bug.cgi?id=371323 .  Please don't
comment on the bug unless your comment will contribute to fixing the
bug or help you contribute to fixing it.)

We could also have a :column-element() pseudo-class that contained a
selector that would apply to table cells associated (semantically)
with a table column element that matched the selector.


I think the solution to implementing what HTML requires for
inheritance of stylistic attributes from columns should be
HTML-specific.  In other words, it should change the way HTML
presentational attributes are mapped to CSS, but not change anything
about CSS.  (Doing this in Mozilla is
https://bugzilla.mozilla.org/show_bug.cgi?id=915 .  Please don't
comment on the bug unless your comment will contribute to fixing the
bug or help you contribute to fixing it.)

-David

-- 
L. David Baron                                 http://dbaron.org/
Mozilla Corporation                       http://www.mozilla.com/
Received on Friday, 26 December 2008 18:14:23 GMT

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