Closed
Bug 169664
Opened 22 years ago
Closed 22 years ago
Wrong child/parent relationships in tables with cascading style sheets (example in details)
Categories
(Core :: CSS Parsing and Computation, defect)
Tracking
()
RESOLVED
INVALID
People
(Reporter: jwuyts, Assigned: dbaron)
References
Details
(Keywords: testcase)
Attachments
(1 file)
235 bytes,
text/html
|
Details |
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
Comment 1•22 years ago
|
||
Comment 2•22 years ago
|
||
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
Comment 3•22 years ago
|
||
Really marking NEW. Sorry for the spam.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Comment 4•22 years ago
|
||
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: 22 years ago
Resolution: --- → INVALID
Comment 5•20 years ago
|
||
*** 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.
Description
•