diff options
Diffstat (limited to 'testing/web-platform/tests/svg/animations/stop-animation-01.html')
-rw-r--r-- | testing/web-platform/tests/svg/animations/stop-animation-01.html | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/testing/web-platform/tests/svg/animations/stop-animation-01.html b/testing/web-platform/tests/svg/animations/stop-animation-01.html new file mode 100644 index 0000000000..d240c51142 --- /dev/null +++ b/testing/web-platform/tests/svg/animations/stop-animation-01.html @@ -0,0 +1,21 @@ +<!doctype html> +<html class="reftest-wait"> +<title>Animate a <stop> element</title> +<link rel="match" href="../struct/reftests/reference/green-100x100.html"> +<script src="/common/reftest-wait.js"></script> +<script src="/common/rendering-utils.js"></script> +<script> +function test() { + waitForAtLeastOneFrame().then(takeScreenshot); +} +</script> +<svg> + <linearGradient id="g"> + <stop stop-color="red"> + <animate attributeName="stop-color" values="red; green" dur="1s" + keyTimes="0; 0.01" fill="freeze" calcMode="discrete" + onbegin="test()"/> + </stop> + </linearGradient> + <rect width="100" height="100" fill="url(#g)"/> +</svg> |