On Wednesday 2006-08-23 18:40 +0100, Nick Fitzsimons wrote:
> As the HTML 4 spec states that the width attribute applies to each  
> individual column spanned by the "COL" element, it follows that a CSS  
> width declaration must also apply to each individual column, rather  
> than to the group of columns, otherwise the two cases above would not  
> be equivalent.

This doesn't necessarily follow.  There are cases where presentational
attributes map to something that isn't in CSS, or is different from what
CSS specifies.  (Note, for example, that the span="2" doesn't map to
anything in CSS.)

However, this one happens to be specified the same way in both specs and
implemented that way:

http://www.w3.org/TR/2006/WD-CSS21-20060411/tables.html#q4 says:
# The following properties apply to column and column-group elements:
# [...]
# 'width'
#   The 'width' property gives the minimum width for the column.
(It's not clear that this part intentionally omitted "or column group".)

http://www.w3.org/TR/1999/REC-html401-19991224/struct/tables.html#adef-width-COLGROUP
http://www.w3.org/TR/1999/REC-html401-19991224/struct/tables.html#adef-width-COL
both specify that widths on cols and colgroups apply per column.

-David

-- 
L. David Baron                                <URL: http://dbaron.org/ >
           Technical Lead, Layout & CSS, Mozilla Corporation

Attachment: pgpCFBUsRgd35.pgp
Description: PGP signature

______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7b2 testing hub -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to