1
0
Fork 0
firefox/testing/web-platform/tests/css/selectors/nth-child-of-classname.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

26 lines
737 B
HTML

<!doctype html>
<html>
<head>
<title>:nth-child with .className selector list argument</title>
<link rel="help" href="https://drafts.csswg.org/selectors-4/#child-index">
<link rel="match" href="nth-child-of-classname-ref.html">
<style>
p:nth-child(even of .webkit, .fast) {
background-color: lime;
}
</style>
</head>
<body>
<p>This test the styling of paragraphs with :nth-child(An+B of selector). If the test succeed, paragraphs that say "green" should have a green background.</p>
<p class="webkit">White</p>
<p>White</p>
<p>White</p>
<p class="fast">Green!</p>
<p>White</p>
<p>White</p>
<p class="webkit">White</p>
<p>White</p>
<p class="webkit">Green!</p>
<p>White</p>
</body>
</html>