[Bug 11474] col and colgroup should have global attributes applied

http://www.w3.org/Bugs/Public/show_bug.cgi?id=11474

Benjamin Hawkes-Lewis <bhawkeslewis@googlemail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bhawkeslewis@googlemail.com

--- Comment #1 from Benjamin Hawkes-Lewis <bhawkeslewis@googlemail.com> 2010-12-05 11:19:10 UTC ---
(In reply to comment #0)
> I don't know if this is the place for this, but
> I think it would be proper for col and colgroup to at *least* have a class and
> a style attribute, and other "on..." events associated with the global
> attributes.  

They already do:

http://dev.w3.org/html5/spec/tabular-data.html#the-col-element

http://dev.w3.org/html5/spec/tabular-data.html#the-colgroup-element

http://dev.w3.org/html5/spec/elements.html#global-attributes

> also, MUCH more CSS (all?) needs to be applied to the col and colgroup
> elements, with the reasoning that whatever you can do with the tr element, you
> should be able to do with the col and colgroup elements.  
> 
> (so what is the difference between col and colgroup anyway if they are only
> going to do backgrounds?)

They don't only do backgrounds; they also do borders, widths, and visibilities.

http://www.w3.org/TR/CSS2/tables.html#columns

> and I think there should also be new
> "row" and "rowgroup" elements as well to match, rows having higher priority.

It would be best if you could stick to one issue per bug report.

Anyhow, there already is a row-grouping element, "tbody":

http://dev.w3.org/html5/spec/tabular-data.html#the-tbody-element

> If you had a red row and green col in a cross formation, I would think that the
> center would be red, unless the cell in the center has its own overriding
> color.

Your expectation is wrong.

"The background properties set the background for cells in the column, but only
if both the cell and row have transparent backgrounds."

http://www.w3.org/TR/CSS2/tables.html#columns

> I suspect this is also a problem with lower versions of HTML as well, so there
> needs to be some browser correction across the board.
> 
> I have had problems with IE8, webkit, and firefox, so I figured something must
> be wrong with the specification(?).

The effects of applying CSS to "col" and "colgroup" are specified by the CSS
specifications, not HTML5.

Requests for changes should be addressed to the CSS WG not the HTML WG bug
tracker:

http://lists.w3.org/Archives/Public/www-style/

-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

Received on Sunday, 5 December 2010 11:19:13 UTC