1
0
Fork 0
firefox/testing/web-platform/tests/css/selectors/not-links.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

25 lines
722 B
HTML

<!DOCTYPE html>
<title>Test that *:not(:link):not(:visited) does not match links</title>
<link rel="match" href="not-links-ref.html">
<link rel="help" href="https://drafts.csswg.org/selectors-4/#negation">
<style>
* {
/* Browsers typically ignore the :visited alpha and use the unvisited
alpha instead, which by default is 0, in which case a failure would
not be detected. */
background-color: white;
}
div *:not(:link):not(:visited) {
background-color: green;
}
</style>
<body>
<div>
<a href="#">Unvisited (<span>Green</span>)</a>
<a href="#">Visited (<span>Green</span>)</a>
<span>Green</span>
</div>
<p>
Only "Green" should have green backgrounds.
</p>
</body>