1
0
Fork 0
firefox/testing/web-platform/tests/css/selectors/nth-child-of-nesting.html
Daniel Baumann 5e9a113729
Adding upstream version 140.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-25 09:37:52 +02:00

28 lines
693 B
HTML

<!doctype html>
<html>
<head>
<title>:nth-last-child nesting</title>
<link rel="help" href="https://drafts.csswg.org/selectors-4/#child-index">
<link rel=author href="mailto:zach@zrhoffman.net" title="Zach Hoffman">
<link rel="match" href="nth-child-of-nesting-ref.html">
<style>
:nth-child(2n + 1 of :nth-child(n of .target)) {
background-color: lime;
}
</style>
</head>
<body>
<p>White</p>
<p class="target">Green</p>
<p>White</p>
<p class="target">White</p>
<p>White</p>
<p class="target">Green</p>
<p>White</p>
<p class="target">White</p>
<p>White</p>
<p class="target">Green</p>
<p>White</p>
<p class="target">White</p>
</body>
</html>