diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 19:33:14 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 19:33:14 +0000 |
commit | 36d22d82aa202bb199967e9512281e9a53db42c9 (patch) | |
tree | 105e8c98ddea1c1e4784a60a5a6410fa416be2de /testing/web-platform/tests/css/selectors/is-where-visited-ref.html | |
parent | Initial commit. (diff) | |
download | firefox-esr-36d22d82aa202bb199967e9512281e9a53db42c9.tar.xz firefox-esr-36d22d82aa202bb199967e9512281e9a53db42c9.zip |
Adding upstream version 115.7.0esr.upstream/115.7.0esr
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'testing/web-platform/tests/css/selectors/is-where-visited-ref.html')
-rw-r--r-- | testing/web-platform/tests/css/selectors/is-where-visited-ref.html | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/selectors/is-where-visited-ref.html b/testing/web-platform/tests/css/selectors/is-where-visited-ref.html new file mode 100644 index 0000000000..c8243ac731 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/is-where-visited-ref.html @@ -0,0 +1,66 @@ +<!DOCTYPE html> +<title>:is/:where combined with :visited/:link</title> +<link rel="help" href="https://drafts.csswg.org/selectors-4/#matches"> +<style> + :visited, :link { + color: black; + } + + #parent1 .a, #parent1 .b, #parent1 .c { + color: green; + } + #parent1 .d, #parent1 .f { + color: magenta; + } + + #parent2 .b, #parent2 .e { + color: tomato; + } + + #parent3 .c, #parent3 .f { + color: skyblue; + } + + #parent4 .c, #parent4 .f { + color: blue; + } + + #parent3 .b, #parent3 .e, #parent4 .b, #parent4 .e { + color: maroon; + } +</style> +<main> + <div id=parent1> + <a class=a href="">a</a> + <a class=b href="">b</a> + <a class=c href="">c</a> + <a class=d href="unvisited">d</a> + <a class=e href="unvisited">e</a> + <a class=f href="unvisited">f</a> + </div> + <div id=parent2> + <a class=a href="">a</a> + <a class=b href="">b</a> + <a class=c href="">c</a> + <a class=d href="unvisited">d</a> + <a class=e href="unvisited">e</a> + <a class=f href="unvisited">f</a> + </div> + <a id=parent3 href=""> + <span class=a>a</span> + <span class=b>b</span> + <span class=c>c</span> + <span class=d>d</span> + <span class=e>e</span> + <span class=f>f</span> + </a> + <br> + <a id=parent4 href="unvisited"> + <span class=a>a</span> + <span class=b>b</span> + <span class=c>c</span> + <span class=d>d</span> + <span class=e>e</span> + <span class=f>f</span> + </a> +</main> |