[Webkit-unassigned] [Bug 184273] New: [Shadow DOM] :nth-of-type() selector doesn't match in shadow roots

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Apr 3 11:18:17 PDT 2018


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

            Bug ID: 184273
           Summary: [Shadow DOM] :nth-of-type() selector doesn't match in
                    shadow roots
           Product: WebKit
           Version: Safari Technology Preview
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: CSS
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: webkit at keanulee.com

The :nth-of-type() selector doesn't match in shadow roots. For example:

#shadow-root
  <style>
  .item:nth-of-type(3) { ... }
  </style>
  <div class="item"></div>
  <div class="item"></div>
  <div class="item"></div>
  <div class="item"></div>

Demo: Last 2 categories ("Men's T-Shirts" and "Ladies T-Shirts") on https://shop.polymer-project.org

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20180403/22d1a99f/attachment-0002.html>


More information about the webkit-unassigned mailing list