Closed Bug 246461 Opened 20 years ago Closed 20 years ago

"align", "style" & "class" attributes don't work with COLGROUP

Categories

(Core :: Layout: Tables, defect)

x86
Windows ME
defect
Not set
major

Tracking

()

RESOLVED DUPLICATE of bug 915

People

(Reporter: stevehomayoun, Unassigned)

References

()

Details

User-Agent:       Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Win 9x 4.90)
Build Identifier: Mozilla/5.0 (Windows; U; Win 9x 4.90; en-US; rv:1.7) Gecko/20040608

When I specify "align", "style" or "class" attribues in COLGROUP they seem to 
be ignored. In the following example (test case file also specified), items in 
the first column should be in bold and items in the second column should be 
centered:

<table border="1">
 <colgroup style="{font-weight:bold}" />
 <colgroup align="center" />
 <tr>
  <td> 1111 </td>
  <td> 2222 </td>
 </tr>
 <tr>
  <td> 3 </td>
  <td> 4 </td>
 </tr>
</table>

This works fine in IE, but fails in Mozilla.

Reproducible: Always
Steps to Reproduce:
1. Just try the test file specified
2.
3.

Actual Results:  
COLGROUP attributes ignored. Table enteries are not bold or centered.

Expected Results:  
Items in the first column should have been bold, items in the second column 
should have been centered.
Align is bug 915.
<colgroup style="{font-weight:bold}" /> is invalid syntax.
You provide no testcase to show what you are trying to do with class.

One issue per bug report, please.

*** This bug has been marked as a duplicate of 915 ***
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → DUPLICATE
Also not that font-weight would not apply to colgroup in any event.  See
http://www.w3.org/TR/CSS21/tables.html#q4
You need to log in before you can comment on or make changes to this bug.