- From: L. David Baron <dbaron@fas.harvard.edu>
- Date: Fri, 4 Feb 2000 13:51:06 -0500 (EST)
- To: www-style@w3.org
On Fri, 04 Feb 2000 14:19:29 -0800, Matthew Brealey (thelawnet@yahoo.com) wrote: > descendant of some ancestor element A. For the purposes of descendant > selectors, table cells are treated as descendants of table columns. For > all other purposes however, table cells are not descendants of table > columns. This is impossible, because one can't know what elements are table columns until after the cascade has been completed. (It is truly impossible to add to the current CSS table model, but possibly (??) only because of the rules for anonymous table elements. However, if it weren't for those rules, it would require complete style resolution on parent elements before cascading of rules that apply to their children, which is a significant limit on implementations.) This is one of the deficiencies of a row-primary table model. I think it is best solved by things like the nth-child pseudo-class in the current CSS3 draft [1]. -David [1] http://www.w3.org/TR/CSS3-selectors#structural-pseudos L. David Baron Sophomore, Harvard (Physics) dbaron@fas.harvard.edu Links, SatPix, CSS, etc. <URL: http://www.fas.harvard.edu/~dbaron/ > WSP CSS AC <URL: http://www.webstandards.org/css/ >
Received on Friday, 4 February 2000 13:51:08 UTC