Closed Bug 169664 Opened 23 years ago Closed 23 years ago

Wrong child/parent relationships in tables with cascading style sheets (example in details)

Categories

(Core :: CSS Parsing and Computation, defect)

x86
All
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: jwuyts, Assigned: dbaron)

References

Details

(Keywords: testcase)

Attachments

(1 file)

User-Agent: Mozilla/5.0 Galeon/1.2.5 (X11; Linux ppc; U;) Gecko/20020724 Build Identifier: Mozilla/5.0 Galeon/1.2.5 (X11; Linux ppc; U;) Gecko/20020724 given the style sheet: TABLE>TR>TD {color: green} I think the following html document should be rendered with green text: <html> <head> <link rel="stylesheet" href="stylesheet.css"> </head> <body> <table> <tr> <td>Green text</td> </tr> </table> </body> </html> But the text remains black. When I change the stylesheet to: TABLE>*>TR>TD {color: green} the test is green and I don't think it should be. Reproducible: Always Steps to Reproduce: 1.see details 2. 3. Actual Results: document with black text Expected Results: document with green text
Attached file Testcase
This is being caused by the implicit TBODY element. If you were to change the CSS to read TABLE>TBODY>TR>TD {color: green}, it would also work. Since TBODY is not required in the HTML though by <http://www.w3.org/TR/html4/struct/tables.html#edef-TBODY>, should the CSS require an assumption that it is there? Marking new since testcase behaves the same in build 2002091014 PC/Win98. OS to All. Added kw testcase.
Keywords: testcase
OS: Linux → All
Really marking NEW. Sorry for the spam.
Status: UNCONFIRMED → NEW
Ever confirmed: true
In HTML the TBODY element is not optional, it's only the start and end tags that are optional. They are optional because the element can be unambiguously implied. The element is still there regardless of whether it is there because the tags were implied or because the tags were explicitly mentioned. INVALID.
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → INVALID
*** Bug 280514 has been marked as a duplicate of this bug. ***
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: