<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>11474</bug_id>
          
          <creation_ts>2010-12-05 10:19:43 +0000</creation_ts>
          <short_desc>col and colgroup should have global attributes applied</short_desc>
          <delta_ts>2011-08-04 05:14:58 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>HTML WG</product>
          <component>LC1 HTML5 spec</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows XP</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Jim Michaels">jmichae3</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>ayg</cc>
    
    <cc>bhawkeslewis</cc>
    
    <cc>dbaron</cc>
    
    <cc>mike</cc>
    
    <cc>public-html-admin</cc>
    
    <cc>public-html-wg-issue-tracking</cc>
          
          <qa_contact name="HTML WG Bugzilla archive list">public-html-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>43065</commentid>
    <comment_count>0</comment_count>
    <who name="Jim Michaels">jmichae3</who>
    <bug_when>2010-12-05 10:19:43 +0000</bug_when>
    <thetext>currently, browsers only apply background-color and maybe background-image css to col and colgroup elements.  I don&apos;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 &quot;on...&quot; events associated with the 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?)  

I think col and colgroup could be much more powerful if they were given full access to theglobal attributes and css.  and I think there should also be new &quot;row&quot; and &quot;rowgroup&quot; elements as well to match, rows having higher priority.

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.

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(?).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>43066</commentid>
    <comment_count>1</comment_count>
    <who name="Benjamin Hawkes-Lewis">bhawkeslewis</who>
    <bug_when>2010-12-05 11:19:10 +0000</bug_when>
    <thetext>(In reply to comment #0)
&gt; I don&apos;t know if this is the place for this, but
&gt; I think it would be proper for col and colgroup to at *least* have a class and
&gt; a style attribute, and other &quot;on...&quot; events associated with the global
&gt; 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

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

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

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

&gt; and I think there should also be new
&gt; &quot;row&quot; and &quot;rowgroup&quot; 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, &quot;tbody&quot;:

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

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

Your expectation is wrong.

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

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

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

The effects of applying CSS to &quot;col&quot; and &quot;colgroup&quot; 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/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>43075</commentid>
    <comment_count>2</comment_count>
    <who name="Aryeh Gregor">ayg</who>
    <bug_when>2010-12-05 20:56:08 +0000</bug_when>
    <thetext>The fact that CSS only allows limited styling of columns is a very long-standing problem, which is not easy to solve in a clean way.  Here&apos;s one explanation of why:

http://ln.hixie.ch/?count=1&amp;start=1070385285

But it&apos;s a CSS problem, not HTML.  The CSS Working Group doesn&apos;t use Bugzilla, so you&apos;ll have to post to www-style.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>43080</commentid>
    <comment_count>3</comment_count>
    <who name="Jim Michaels">jmichae3</who>
    <bug_when>2010-12-06 08:18:49 +0000</bug_when>
    <thetext>I submitted a separate bug report for the row and rowgroup, Bug 11479.

it is not obvious that tbody is a row grouping element.  by its name I assume this is a container for the whole body of all the tr and td elements collectively, just as the body element contains the content of the page.

but I am suggesting something where I could, in effect,
&lt;col style=&quot;font-weight:bold; background-color:red; color:white; border-color-left:brown; border-style-left:solid; border-width-left:thin; border-style-right:none; font-family:Verdana; text-wrap:none; text-decoration:line-through; vertical-align:top; text-align:right;&quot;&gt;

CSS like this.  generic stuff that people use everyday in formatting text.  this is what needs to be applied to col, colgroup.

unfortunately, this will never be heard by the CSS folk because they don&apos;t listen, so I give up.  I am closing this bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>53549</commentid>
    <comment_count>4</comment_count>
    <who name="Michael[tm] Smith">mike</who>
    <bug_when>2011-08-04 05:14:58 +0000</bug_when>
    <thetext>mass-move component to LC1</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>