diff options
Diffstat (limited to 'testing/web-platform/tests/css/motion/animation/reftests')
6 files changed, 173 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/motion/animation/reftests/offset-distance-interpolation-001.html b/testing/web-platform/tests/css/motion/animation/reftests/offset-distance-interpolation-001.html new file mode 100644 index 0000000000..88441f5b54 --- /dev/null +++ b/testing/web-platform/tests/css/motion/animation/reftests/offset-distance-interpolation-001.html @@ -0,0 +1,34 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <head> + <title>offset-distance interpolation</title> + <link rel="help" href="https://drafts.fxtf.org/motion-1/#offset-distance-property"> + <link rel="match" href="offset-path-path-interpolation-ref.html"> + <meta name="assert" content="offset-distance supports animation."> + <style> + @keyframes anim { + from { offset-distance: 0%; } + to { offset-distance: 100%; } + } + #target { + position: absolute; + left: 300px; + top: 0px; + width: 300px; + height: 200px; + background-color: lime; + transform-origin: 0px 0px; + offset-path: path("m 50 150 h 100"); + animation: anim 10s -5s paused linear; + } + </style> + </head> + <body> + <div id="target"></div> + </body> + <script> + requestAnimationFrame(() => { + document.documentElement.classList.remove('reftest-wait'); + }); + </script> +</html> diff --git a/testing/web-platform/tests/css/motion/animation/reftests/offset-path-path-interpolation-001.html b/testing/web-platform/tests/css/motion/animation/reftests/offset-path-path-interpolation-001.html new file mode 100644 index 0000000000..0f27651896 --- /dev/null +++ b/testing/web-platform/tests/css/motion/animation/reftests/offset-path-path-interpolation-001.html @@ -0,0 +1,33 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <head> + <title>offset-path path() interpolation</title> + <link rel="help" href="https://drafts.fxtf.org/motion-1/#offset-path-property"> + <link rel="match" href="offset-path-path-interpolation-ref.html"> + <meta name="assert" content="offset-path path supports animation."> + <style> + @keyframes anim { + from { offset-path: path("m 100 100 l 100 100"); } + to { offset-path: path("m 100 200 l 100 -100"); } + } + #target { + position: absolute; + left: 300px; + top: 0px; + width: 300px; + height: 200px; + background-color: lime; + transform-origin: 0px 0px; + animation: anim 10s -5s paused linear; + } + </style> + </head> + <body> + <div id="target"></div> + </body> + <script> + requestAnimationFrame(() => { + document.documentElement.classList.remove('reftest-wait'); + }); + </script> +</html> diff --git a/testing/web-platform/tests/css/motion/animation/reftests/offset-path-path-interpolation-ref.html b/testing/web-platform/tests/css/motion/animation/reftests/offset-path-path-interpolation-ref.html new file mode 100644 index 0000000000..9bc2409061 --- /dev/null +++ b/testing/web-platform/tests/css/motion/animation/reftests/offset-path-path-interpolation-ref.html @@ -0,0 +1,21 @@ +<!DOCTYPE html> +<html> + <head> + <title>offset-path path interpolation reference</title> + <style> + #target { + position: absolute; + left: 300px; + top: 0px; + width: 300px; + height: 200px; + background-color: lime; + transform-origin: 0px 0px; + offset-path: path("M 100 150 L 200 150"); + } + </style> + </head> + <body> + <div id="target"></div> + </body> +</html> diff --git a/testing/web-platform/tests/css/motion/animation/reftests/offset-path-with-transforms-001.html b/testing/web-platform/tests/css/motion/animation/reftests/offset-path-with-transforms-001.html new file mode 100644 index 0000000000..c554264032 --- /dev/null +++ b/testing/web-platform/tests/css/motion/animation/reftests/offset-path-with-transforms-001.html @@ -0,0 +1,35 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <head> + <title>CSS Motion Path: Combined transformation matrix interpolation</title> + <link rel="help" href="https://drafts.csswg.org/css-transforms-2/#ctm"> + <link rel="match" href="offset-path-with-transforms-ref.html"> + <meta name="assert" content="This tests animating combined transformation matrix."> + <style> + @keyframes anim { + to { + translate: 0px 100px; + offset-distance: 100%; + transform: translateX(-100px); + } + } + #target { + position: absolute; + width: 100px; + height: 50px; + background-color: lime; + offset-path: path("M25 0v100"); + animation: anim 10s -5s paused linear; + } + </style> + </head> + <body onload="load()"> + <div id="target"></div> + <div style='width: 50px; height: 100px; background-color: red;'></div> + </body> + <script> + requestAnimationFrame(() => { + document.documentElement.classList.remove('reftest-wait'); + }); + </script> +</html> diff --git a/testing/web-platform/tests/css/motion/animation/reftests/offset-path-with-transforms-ref.html b/testing/web-platform/tests/css/motion/animation/reftests/offset-path-with-transforms-ref.html new file mode 100644 index 0000000000..413369e0ef --- /dev/null +++ b/testing/web-platform/tests/css/motion/animation/reftests/offset-path-with-transforms-ref.html @@ -0,0 +1,16 @@ +<!DOCTYPE html> +<html> + <head> + <title>CSS Motion Path: Combined transformation matrix interpolation reference</title> + <style> + #target { + width: 50px; + height: 100px; + background-color: lime; + } + </style> + </head> + <body> + <div id="target"></div> + </body> +</html> diff --git a/testing/web-platform/tests/css/motion/animation/reftests/offset-rotate-interpolation-001.html b/testing/web-platform/tests/css/motion/animation/reftests/offset-rotate-interpolation-001.html new file mode 100644 index 0000000000..360caeea68 --- /dev/null +++ b/testing/web-platform/tests/css/motion/animation/reftests/offset-rotate-interpolation-001.html @@ -0,0 +1,34 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + <head> + <title>offset-rotate interpolation</title> + <link rel="help" href="https://drafts.fxtf.org/motion-1/#offset-rotate-property"> + <link rel="match" href="offset-path-path-interpolation-ref.html"> + <meta name="assert" content="offset-rotate supports animation."> + <style> + @keyframes anim { + from { offset-rotate: auto; } + to { offset-rotate: reverse; } + } + #target { + position: absolute; + left: 300px; + top: 0px; + width: 300px; + height: 200px; + background-color: lime; + transform-origin: 0px 0px; + offset-path: path("m 100 150 v -100"); + animation: anim 10s -5s paused linear; + } + </style> + </head> + <body> + <div id="target"></div> + </body> + <script> + requestAnimationFrame(() => { + document.documentElement.classList.remove('reftest-wait'); + }); + </script> +</html> |