[Webkit-unassigned] [Bug 98021] New: Wrong display with "tr:nth-child(even) td" and missing <tbody>

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Oct 1 05:38:40 PDT 2012


https://bugs.webkit.org/show_bug.cgi?id=98021

           Summary: Wrong display with "tr:nth-child(even) td" and missing
                    <tbody>
           Product: WebKit
           Version: 420+
          Platform: PC
               URL: http://robin-gloster.de/webkit.html
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: Tables
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: robin at loc-com.de


I have a table and want to color the background of alternating rows using:

table tr:nth-child(even) td {
  background: #eee;
}

This works if tbody is present, otherwise the first colored row gets mixed up.

See http://robin-gloster.de/webkit.html for page without tbody
See http://robin-gloster.de/webkit2.html for working page with tbody
See http://robin-gloster.de/webkit.css for the css

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list