Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<!doctype html>
<meta charset="utf-8">
<title>CSS Test: :nth-child(of) with pseudo-elements</title>
<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>