summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/svg/animations/svg-style-animate-crash.html
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/svg/animations/svg-style-animate-crash.html')
-rw-r--r--testing/web-platform/tests/svg/animations/svg-style-animate-crash.html22
1 files changed, 22 insertions, 0 deletions
diff --git a/testing/web-platform/tests/svg/animations/svg-style-animate-crash.html b/testing/web-platform/tests/svg/animations/svg-style-animate-crash.html
new file mode 100644
index 0000000000..0ed2140617
--- /dev/null
+++ b/testing/web-platform/tests/svg/animations/svg-style-animate-crash.html
@@ -0,0 +1,22 @@
+<!DOCTYPE html>
+<title>Starting a CSS Animation and Web Animation at the same time on SVG style elements</title>
+<link rel="help" href="https://crbug.com/1264236">
+<style>
+ @keyframes anim {
+ from { color: green; }
+ to { color: red; }
+ }
+
+ #target {
+ animation: anim 1s linear;
+ }
+</style>
+<svg>
+ <style id=target>Test</style>
+</svg>
+<script>
+ addEventListener('load', () => {
+ target.animate({'top': ['0px', '10px']}, 1000);
+ target.offsetTop;
+ });
+</script>