diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 00:47:55 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 00:47:55 +0000 |
commit | 26a029d407be480d791972afb5975cf62c9360a6 (patch) | |
tree | f435a8308119effd964b339f76abb83a57c29483 /testing/web-platform/tests/css/selectors/nth-child-of-compound-selector.html | |
parent | Initial commit. (diff) | |
download | firefox-26a029d407be480d791972afb5975cf62c9360a6.tar.xz firefox-26a029d407be480d791972afb5975cf62c9360a6.zip |
Adding upstream version 124.0.1.upstream/124.0.1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'testing/web-platform/tests/css/selectors/nth-child-of-compound-selector.html')
-rw-r--r-- | testing/web-platform/tests/css/selectors/nth-child-of-compound-selector.html | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/selectors/nth-child-of-compound-selector.html b/testing/web-platform/tests/css/selectors/nth-child-of-compound-selector.html new file mode 100644 index 0000000000..50bdba0b83 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/nth-child-of-compound-selector.html @@ -0,0 +1,29 @@ +<!doctype html> +<html> +<head> +<title>:nth-child with compound selector argument</title> +<link rel="help" href="https://drafts.csswg.org/selectors-4/#child-index"> +<link rel="match" href="nth-child-of-compound-selector-ref.html"> +<style> +/* 3n of paragraph with the class foobar but for which foobar is not the only class. */ +p:nth-child(3n+1 of p.foobar:not([class=foobar])) { + background-color: lime; +} +</style> +</head> +<body> + <p class="foobar foo"></p> + <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="foobar">White!</p> + <p class="foobar foo">White!</p> + <p>White!</p> + <p class="foo foobar">White!</p> + <p>White!</p> + <p class="foobar foo">Green</p> + <p class="foobar">White!</p> + <p class="foo foobar">White!</p> + <p class="foobar">White!</p> + <p class="foo foobar baz">White!</p> + <p>White!</p> +</body> +</html> |