summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/svg/styling/use-element-web-animations.html
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 00:47:55 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 00:47:55 +0000
commit26a029d407be480d791972afb5975cf62c9360a6 (patch)
treef435a8308119effd964b339f76abb83a57c29483 /testing/web-platform/tests/svg/styling/use-element-web-animations.html
parentInitial commit. (diff)
downloadfirefox-26a029d407be480d791972afb5975cf62c9360a6.tar.xz
firefox-26a029d407be480d791972afb5975cf62c9360a6.zip
Adding upstream version 124.0.1.upstream/124.0.1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'testing/web-platform/tests/svg/styling/use-element-web-animations.html')
-rw-r--r--testing/web-platform/tests/svg/styling/use-element-web-animations.html25
1 files changed, 25 insertions, 0 deletions
diff --git a/testing/web-platform/tests/svg/styling/use-element-web-animations.html b/testing/web-platform/tests/svg/styling/use-element-web-animations.html
new file mode 100644
index 0000000000..bbf878b3a9
--- /dev/null
+++ b/testing/web-platform/tests/svg/styling/use-element-web-animations.html
@@ -0,0 +1,25 @@
+<!DOCTYPE html>
+<html>
+<title>SVG Test: Independent Web animations on svg:use instantiation and corresponding element</title>
+<link rel="help" href="https://svgwg.org/svg2-draft/struct.html#UseElement">
+<link rel="match" href="use-element-transitions-ref.html">
+<style>
+ use {
+ font-size: 40px;
+ }
+ g {
+ font-size: 120px;
+ }
+</style>
+<svg>
+ <use id="use_elm" xlink:href="#tmpl" />
+ <g id="g_elm">
+ <text id="tmpl" x="10" y="100">Hello!</text>
+ </g>
+</svg>
+<script>
+ tmpl.animate([
+ { /* starts from computed font-size */ easing: "steps(2, start)"},
+ { font-size: "80px" }
+ ], 100000);
+</script>