Summary: | Formatting <TD> with CSS only in the first deeper level | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Rüdiger Cordes <rc> | ||||||
Component: | CSS | Assignee: | Nobody <webkit-unassigned> | ||||||
Status: | RESOLVED WONTFIX | ||||||||
Severity: | Normal | CC: | tabatkins | ||||||
Priority: | P2 | ||||||||
Version: | 528+ (Nightly build) | ||||||||
Hardware: | Mac | ||||||||
OS: | OS X 10.4 | ||||||||
URL: | none | ||||||||
Attachments: |
|
Description
Rüdiger Cordes
2008-09-12 10:58:31 PDT
To have something that works: <HTML> <HEAD> <STYLE type="text/css"> table.m td {border:1px solid #F00} table.m td td {border:1px solid #FA0} </STYLE> </HEAD> <BODY> <TABLE class=m> <TR> <TD> <TABLE><TR><TD>innere Tabelle</TD></TR></TABLE> </TD> <TD>Text</TD> </TR> </TABLE> </BODY> </HTML> HTML automatically "repairs" tables by wrapping bare <tr>s into a <tbody>, which is why your .r selector didn't work. So the selector you want is "table > tbody > tr > td". Created attachment 111932 [details]
Working with table class=a
When the higher table has a class its working
Created attachment 111935 [details]
Not working with table
When the higher table has no class its not working
What when the higher table has no class the problem persists. |