blob: 7113af901042966053b5484a5a9e3d09139e006d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
<!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>
|