Closed Bug 460131 Opened 16 years ago Closed 16 years ago

colgroup style, class etc have no effect at all

Categories

(Firefox :: General, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 285184

People

(Reporter: robinpelgrim, Unassigned)

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.0.3) Gecko/2008092417 Firefox/3.0.3
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.0.3) Gecko/2008092417 Firefox/3.0.3

According to w3c colgroup (or col) can have style and class (and other) attributes.

They have only effect on the real column for background-color, not for padding, color etc.. (I did not try them all)
This works as expected for IE, (although not for FF, not for Google Chrome, not for Opera.)

Reproducible: Always

Steps to Reproduce:
<table>
    <colgroup style="color:red;background-color:blue;padding:100px;">
    </colgroup>
    <tr>
        <td>1</td>
    </tr>
    <tr>
        <td>1</td>
    </tr>
</table>
Actual Results:  
black font, blue background, default padding in column

Expected Results:  
red font in column, blue background, 100px padding in column
DUPE of bug 285184
(In reply to comment #1)
> DUPE of bug 285184

Indeed. CSS 2.1 clearly states what properties are applied to the col (and colgroup) elements: border, background, width, visibility.

http://www.w3.org/TR/CSS21/tables.html#columns
Status: UNCONFIRMED → RESOLVED
Closed: 16 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.