summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/selectors/nth-last-child-of-nesting.html
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/css/selectors/nth-last-child-of-nesting.html')
-rw-r--r--testing/web-platform/tests/css/selectors/nth-last-child-of-nesting.html28
1 files changed, 28 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/selectors/nth-last-child-of-nesting.html b/testing/web-platform/tests/css/selectors/nth-last-child-of-nesting.html
new file mode 100644
index 0000000000..0dd18f2c4b
--- /dev/null
+++ b/testing/web-platform/tests/css/selectors/nth-last-child-of-nesting.html
@@ -0,0 +1,28 @@
+<!doctype html>
+<html>
+<head>
+<title>:nth-last-child nesting</title>
+<link rel="help" href="https://w3c.github.io/csswg-drafts/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-last-child(2n - 2 of :nth-last-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>