<!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:[email protected]">
<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>