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

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

From: Henri de Solages <mongolie2006-w3c@yahoo.fr>
Date: Fri, 26 Dec 2008 03:52:45 +0000 (GMT)
To: www-style@w3.org
Message-ID: <982100.62616.qm@web28606.mail.ukl.yahoo.com>

XHTML-1.0 strict DTD, which is a recommendation, says here
 col elements define the alignment properties for cells in
 one or more columns.

 The width attribute specifies the width of the columns, e.g.

     width=64        width in screen pixels
     width=0.5*      relative width of 0.5

 The span attribute causes the attributes of one
 col element to apply to more than one column.
  span        %Number;       "1"
  width       %MultiLength;  #IMPLIED

while CSS-2.1 specifications, which is NOT a recommendation, says there:
"The following properties apply to column and column-group elements:

'visibility' "

Since I'm not a specialist at all, it's probable I didn't understand something, but according to the number of reported bugs declared "invalid" about this in Firefox's bugzilla
I'm not the only one. Moreover Microsoft Internet Explorer and Mozilla Firefox reportedly behave differently. What I understand is that XHTML says "col" should support alignment attributes, and CSS says it shouldn't... It's not very coherent. At least, the rule should be explained and warned of in the recommendation. But in my opinion it'd be better to allow within CSS the attributes allowed directly in XHTML.

Received on Friday, 26 December 2008 05:06:41 UTC

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