W3C home > Mailing lists > Public > www-style@w3.org > January 1996

Inheritance of column attributes

From: Hakon Lie <Hakon.Lie@sophia.inria.fr>
Date: Tue, 23 Jan 1996 10:47:36 +0100
Message-Id: <199601230947.KAA12769@www4.inria.fr>
To: preece@predator.urbana.mcd.mot.com (Scott E. Preece)
Cc: www-style@w3.org
Scott,

 > I don't think this is acceptable.  CSS should specify that TD and TH
 > elements inherit from both the SGML hierarchy (TABLE, THEAD|TBODY|TFOOT,
 > TR) *and* from the COLGROUP and COL elements defining the column in
 > which the cell occurs.

The CSS specification [1] addresses this issue. Short summary:

- borders between cells can be set on any table element including
  COLGROUP and COL. In case of conflicts, the thickest will win.

- other properties (fonts etc.) follow normal inheritance rules, and
  the only way to influence the presentation of an element is to address
  the element itself or an ancestor. COL and COLGROUP are useless in
  this regard, and a CLASS attribute should be used to apply a special
  style to a column. 

This is not what you asked for, but introducing multiple inheritance
would complicate matters. The tree structure of SGML/HTML does not
lend itself easily to tables.

While the rest of the CSS specification is stable at this point, the
notes on tables [2] were recently rewritten. Comments welcome.

[1] http://www.w3.org/pub/WWW/TR/WD-css1-951222.html
[2] http://www.w3.org/pub/WWW/TR/WD-css1-951222.html#tables

Regards,

-h&kon

Hakon W Lie, W3C/INRIA, Sophia-Antipolis, France
http://www.w3.org/People/howcome  howcome@w3.org
Received on Tuesday, 23 January 1996 04:48:16 GMT

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