Status: FAIL | Duration: 10ms | Subtests: 0/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi
/css/selectors/nth-child-of-pseudo.html
<!doctype html> <meta charset="utf-8"> <title>CSS Test: :nth-child(of) with pseudo-elements</title> <link rel="help" href="https://drafts.csswg.org/selectors-4/#child-index"> <link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1834717"> <link rel="author" title="Emilio Cobos Álvarez" href="mailto:emilio@crisal.io"> <link rel="author" title="Mozilla" href="https://mozilla.org"> <link rel="match" href="nth-child-of-pseudo-ref.html"> <style> div:nth-child(odd of .b)::before { content: "x"; } </style> <div class="a">a</div> <div class="b">b</div> <div class="a">a</div> <div class="b">b</div> <div class="a">a</div> <div class="b">b</div>
/css/selectors/nth-child-of-pseudo-ref.html
<!doctype html> <meta charset="utf-8"> <title>CSS Test Reference</title> <div class="a">a</div> <div class="b">xb</div> <div class="a">a</div> <div class="b">b</div> <div class="a">a</div> <div class="b">xb</div>