Closed Bug 102200 Opened 25 years ago Closed 25 years ago

<COL> style does not propagate to <TD>

Categories

(Core :: CSS Parsing and Computation, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: donb, Assigned: dbaron)

Details

These 2 tables should render the same. The width property in <COL> works fine for both tables but only the 2nd table renders the "padding-left" style on column 1. Tested both Netscape 6.1 and Mozilla 9.3. <html> <body> <table style="background-color:blue;color:white" cellspacing="0" cellpadding="0"> <col width="100px" style="padding-left:20px"></col><col width="100px"></col> <tr><td>col 1</td><td>col 2</td></tr> <tr><td>col 1</td><td>col 2</td></tr> </table> <BR><BR> <table style="background-color:blue;color:white" cellspacing="0" cellpadding="0"> <col width="100px"><col width="100px"> <tr><td style="padding-left:20px">col 1</td><td>col 2</td></tr> <tr><td style="padding-left:20px">col 1</td><td>col 2</td></tr> </table> </body> </html>
According to the CSS2 spec, 'padding-left' should not apply to columns. See http://www.w3.org/TR/REC-CSS2/tables.html#q4 (Note: This is NOT a duplicate of bug 915.) Therefore, this is not a bug. This is just the way the HTML/CSS table model works (whether you like it or not -- in my case, probably more of the not).
Status: UNCONFIRMED → RESOLVED
Closed: 25 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.