nth-child-of-pseudo.html (660B)
1 <!doctype html> 2 <meta charset="utf-8"> 3 <title>CSS Test: :nth-child(of) with pseudo-elements</title> 4 <link rel="help" href="https://drafts.csswg.org/selectors-4/#child-index"> 5 <link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1834717"> 6 <link rel="author" title="Emilio Cobos Álvarez" href="mailto:emilio@crisal.io"> 7 <link rel="author" title="Mozilla" href="https://mozilla.org"> 8 <link rel="match" href="nth-child-of-pseudo-ref.html"> 9 <style> 10 div:nth-child(odd of .b)::before { 11 content: "x"; 12 } 13 </style> 14 <div class="a">a</div> 15 <div class="b">b</div> 16 <div class="a">a</div> 17 <div class="b">b</div> 18 <div class="a">a</div> 19 <div class="b">b</div>