summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-animations/animation-important-002.html
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/css/css-animations/animation-important-002.html')
-rw-r--r--testing/web-platform/tests/css/css-animations/animation-important-002.html21
1 files changed, 21 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/css-animations/animation-important-002.html b/testing/web-platform/tests/css/css-animations/animation-important-002.html
new file mode 100644
index 0000000000..2a68f8e0ca
--- /dev/null
+++ b/testing/web-platform/tests/css/css-animations/animation-important-002.html
@@ -0,0 +1,21 @@
+<!DOCTYPE html>
+<title>Test that animated properties on :visited are overridden by !important</title>
+<link rel="help" href="https://drafts.csswg.org/css-cascade/#cascade-origin">
+<link rel="match" href="animation-important-002-ref.html">
+<style>
+ @keyframes color_and_bg_animation {
+ from { background-color: rgb(0, 100, 0); color: rgb(100, 0, 0); }
+ to { background-color: rgb(0, 200, 0); color: rgb(200, 0, 0); }
+ }
+ a {
+ animation-name: color_and_bg_animation;
+ animation-duration: 1000s;
+ animation-delay: -500s;
+ animation-timing-function: steps(2, end);
+ }
+ a:visited {
+ color: white !important;
+ }
+</style>
+<a href="#unvisited">Unvisited</a>
+<a href="">Visited</a>