summaryrefslogtreecommitdiffstats
path: root/layout/reftests/scoped-style/scoped-style-keyframes.html
diff options
context:
space:
mode:
Diffstat (limited to 'layout/reftests/scoped-style/scoped-style-keyframes.html')
-rw-r--r--layout/reftests/scoped-style/scoped-style-keyframes.html28
1 files changed, 28 insertions, 0 deletions
diff --git a/layout/reftests/scoped-style/scoped-style-keyframes.html b/layout/reftests/scoped-style/scoped-style-keyframes.html
new file mode 100644
index 000000000..18e9c6670
--- /dev/null
+++ b/layout/reftests/scoped-style/scoped-style-keyframes.html
@@ -0,0 +1,28 @@
+<!DOCTYPE html>
+<body>
+ <style>
+ @keyframes a {
+ from { color: green }
+ to { color: green }
+ }
+ p { animation-duration: 1s; animation-fill-mode: both }
+ #a { animation-name: a }
+ #c { animation-name: b }
+ </style>
+ <p id=a>First</p>
+ <p>
+ <style scoped>
+ @keyframes a {
+ from { color: blue }
+ to { color: blue }
+ }
+ @keyframes b {
+ from { color: red }
+ to { color: red }
+ }
+ p { animation-name: b }
+ </style>
+ Second
+ </p>
+ <p id=c>Third</p>
+</body>