diff options
Diffstat (limited to 'testing/web-platform/tests/css/selectors/any-link-dynamic-001.html')
-rw-r--r-- | testing/web-platform/tests/css/selectors/any-link-dynamic-001.html | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/selectors/any-link-dynamic-001.html b/testing/web-platform/tests/css/selectors/any-link-dynamic-001.html new file mode 100644 index 0000000000..e84989fd0c --- /dev/null +++ b/testing/web-platform/tests/css/selectors/any-link-dynamic-001.html @@ -0,0 +1,14 @@ +<!DOCTYPE html> +<meta charset="utf-8"> +<title>CSS test: Handling of dynamic changes to :any-link selectors</title> +<link rel="author" title="Boris Zbarsky" href="mailto:bzbarsky@mit.edu"> +<link rel="match" href="any-link-dynamic-001-ref.html"> +<link rel="help" href="https://drafts.csswg.org/selectors-4/#the-any-link-pseudo"> +<style> + span { color: green; } + :any-link + span { color: red; } +</style> +<body onload="window.oldColor = getComputedStyle(document.querySelector('span')).color; + document.querySelector('a').removeAttribute('href');"> + <a href=""></a><span>This should be green</span> +</body> |