Closed Bug 36424 Opened 25 years ago Closed 25 years ago

Style inheritance problem in tables

Categories

(Core :: CSS Parsing and Computation, defect, P3)

defect

Tracking

()

VERIFIED DUPLICATE of bug 31955

People

(Reporter: rsalesas, Assigned: pierre)

Details

Attachments

(1 file)

The following code shows that the text in the cell takes the right font size, but not the right color. In fact, it ignores the color. <style> .p {color:green;font-size:8px} .listChoiceBar .p {color:red;font-size:38px} </style> <TABLE BORDER=0 cellspacing=0 cellpadding=0 class="listChoiceBar"> <TR class="p"> <td>View</TD> </tr> </table>
I'm attaching a testcase based on the reporter's. Three tables, each in a div of class "gr". Anything of class "rd" inside that div should be red, and 30px. Making the TABLE class="rd" has no effect at all, except that the style of the DIV isn't inherited. Making the TR class="rd" applies the font size, but not the color. Only making the TD class="rd" has the expected effect.
Status: UNCONFIRMED → NEW
Ever confirmed: true
OS: Windows 2000 → All
Hardware: PC → All
Summary: Style in cell ignores color but uses font size → Style inheritance problem in tables
Attached file testcase
This is a NavQuirks issue: In standard mode it works correctly, however since there is no DocType in the testcase NavQuirks kick in and the rule there is to block inheritance into tables. Marking as a dup of 31955 since that bug deals with the table inherticance quirk. *** This bug has been marked as a duplicate of 31955 ***
Status: NEW → RESOLVED
Closed: 25 years ago
Resolution: --- → DUPLICATE
Verified duplicate.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: