Comment 38 for bug 353877

Revision history for this message
In , Vyv03354 (vyv03354) wrote :

CSS2 Spec. 17.3 says that 'border', 'background', 'width', and 'visibility'
apply to column and column-group elements.

(http://www.w3.org/TR/REC-CSS2/tables.html#q4 )
|Table cells may belong to two contexts: rows and columns. However, in the
|source document cells are descendants of rows, never of columns. Nevertheless,
|some aspects of cells can be influenced by setting properties on columns.
|
|The following properties apply to column and column-group elements:
|
|'border'
(snip)
|'background'
(snip)
|'width'
(snip)
|'visibility'

And CSS Spec. 9.10 says CSS 'direction' doesn't inherit from column, but
HTML4 "dir" inherits from COL.
( http://www.w3.org/TR/REC-CSS2/visuren.html#direction )
|Note. The 'direction' property, when specified for table column elements, is
|not inherited by cells in the column since columns don't exist in the document
|tree. Thus, CSS cannot easily capture the "dir" attribute inheritance rules
|described in [HTML40], section 11.3.2.1.

What about 'text-align'? Probably 'text-align' should not inherit from column
and column-group since it is not listed in 17.3 as exception.

Win IE 5.5 is wrong. On MacIE 5, HTML4 "align" and CSS 'background' inherit
from column, but CSS 'text-align' and 'color' don't inherit from column.