Support nth-child() in shadow Dom
Reported by
benny.po...@gmail.com,
Jan 9 2018
|
|||
Issue descriptionUserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:57.0) Gecko/20100101 Firefox/57.0 Steps to reproduce the problem: 1. See http://jsbin.com/ruqogoc/2/edit?html,output What is the expected behavior? nth-child(odd) should select odd children nth-child(even) should select even children What went wrong? nth-child(odd) selects even children nth-child(even) selects odd children Did this work before? N/A Does this work in other browsers? Yes Chrome version: 63.0.3239.132 Channel: canary OS Version: OS X 10.13 Flash Version: Possible dupe of https://bugs.chromium.org/p/chromium/issues/detail?id=747818&q=nth-child&colspec=ID%20Pri%20M%20Stars%20ReleaseBlock%20Component%20Status%20Owner%20Summary%20OS%20Modified and https://bugs.chromium.org/p/chromium/issues/detail?id=304163&q=nth-child&colspec=ID%20Pri%20M%20Stars%20ReleaseBlock%20Component%20Status%20Owner%20Summary%20OS%20Modified
,
Jan 10 2018
,
Jan 10 2018
https://bugs.chromium.org/p/chromium/issues/detail?id=800369#c1 is correct. You can use :nth-of-type instead which will match the nth section element.
,
Jan 10 2018
Thanks all for the input comment #3 is the correct solution. |
|||
►
Sign in to add a comment |
|||
Comment 1 by woxxom@gmail.com
, Jan 9 2018