diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 09:22:09 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 09:22:09 +0000 |
commit | 43a97878ce14b72f0981164f87f2e35e14151312 (patch) | |
tree | 620249daf56c0258faa40cbdcf9cfba06de2a846 /testing/web-platform/tests/css/motion/animation/offset-path-interpolation-002.html | |
parent | Initial commit. (diff) | |
download | firefox-43a97878ce14b72f0981164f87f2e35e14151312.tar.xz firefox-43a97878ce14b72f0981164f87f2e35e14151312.zip |
Adding upstream version 110.0.1.upstream/110.0.1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'testing/web-platform/tests/css/motion/animation/offset-path-interpolation-002.html')
-rw-r--r-- | testing/web-platform/tests/css/motion/animation/offset-path-interpolation-002.html | 93 |
1 files changed, 93 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/motion/animation/offset-path-interpolation-002.html b/testing/web-platform/tests/css/motion/animation/offset-path-interpolation-002.html new file mode 100644 index 0000000000..2841bd9562 --- /dev/null +++ b/testing/web-platform/tests/css/motion/animation/offset-path-interpolation-002.html @@ -0,0 +1,93 @@ +<!DOCTYPE html> +<html> + <head> + <meta charset="utf-8"> + <title>offset-distance interpolation</title> + <link rel="author" title="Eric Willigers" href="mailto:ericwilligers@chromium.org"> + <link rel="help" href="https://drafts.fxtf.org/motion-1/#offset-distance-property"> + <meta name="assert" content="offset-distance supports animation."> + <script src="/resources/testharness.js"></script> + <script src="/resources/testharnessreport.js"></script> + <script src="/css/support/interpolation-testcommon.js"></script> + </head> + <body> + <script> + 'use strict'; + + test_interpolation({ + property: 'offset-path', + from: "path('M 20 10 C 32 42 52 62 120 2200')", + to: "path('M 20 10 C 40 50 60 70 200 3000')", + }, [ + {at: -1, expect: "path('M 20 10 C 24 34 44 54 40 1400')"}, + {at: 0, expect: "path('M 20 10 C 32 42 52 62 120 2200')"}, + {at: 0.125, expect: "path('M 20 10 C 33 43 53 63 130 2300')"}, + {at: 0.875, expect: "path('M 20 10 C 39 49 59 69 190 2900')"}, + {at: 1, expect: "path('M 20 10 C 40 50 60 70 200 3000')"}, + {at: 2, expect: "path('M 20 10 C 48 58 68 78 280 3800')"} + ]); + test_interpolation({ + property: 'offset-path', + from: "path('m 20 10 c 12 32 32 52 100 2190')", + to: "path('m 20 10 c 20 40 40 60 180 2990')" + }, [ + {at: -1, expect: "path('M 20 10 C 24 34 44 54 40 1400')"}, + {at: 0, expect: "path('M 20 10 C 32 42 52 62 120 2200')"}, + {at: 0.125, expect: "path('M 20 10 C 33 43 53 63 130 2300')"}, + {at: 0.875, expect: "path('M 20 10 C 39 49 59 69 190 2900')"}, + {at: 1, expect: "path('M 20 10 C 40 50 60 70 200 3000')"}, + {at: 2, expect: "path('M 20 10 C 48 58 68 78 280 3800')"} + ]); + + test_interpolation({ + property: 'offset-path', + from: "path('M 20 10 Q 32 42 120 2200')", + to: "path('M 20 10 Q 40 50 200 3000')" + }, [ + {at: -1, expect: "path('M 20 10 Q 24 34 40 1400')"}, + {at: 0, expect: "path('M 20 10 Q 32 42 120 2200')"}, + {at: 0.125, expect: "path('M 20 10 Q 33 43 130 2300')"}, + {at: 0.875, expect: "path('M 20 10 Q 39 49 190 2900')"}, + {at: 1, expect: "path('M 20 10 Q 40 50 200 3000')"}, + {at: 2, expect: "path('M 20 10 Q 48 58 280 3800')"} + ]); + test_interpolation({ + property: 'offset-path', + from: "path('m 20 10 q 12 32 100 2190')", + to: "path('m 20 10 q 20 40 180 2990')" + }, [ + {at: -1, expect: "path('M 20 10 Q 24 34 40 1400')"}, + {at: 0, expect: "path('M 20 10 Q 32 42 120 2200')"}, + {at: 0.125, expect: "path('M 20 10 Q 33 43 130 2300')"}, + {at: 0.875, expect: "path('M 20 10 Q 39 49 190 2900')"}, + {at: 1, expect: "path('M 20 10 Q 40 50 200 3000')"}, + {at: 2, expect: "path('M 20 10 Q 48 58 280 3800')"} + ]); + + test_interpolation({ + property: 'offset-path', + from: "path('M 100 400 A 10 20 30 1 0 140 450')", + to: "path('M 300 200 A 50 60 70 0 1 380 290')" + }, [ + {at: -1, expect: "path('M -100 600 A -30 -20 -10 1 0 -100 610')"}, + {at: 0, expect: "path('M 100 400 A 10 20 30 1 0 140 450')"}, + {at: 0.125, expect: "path('M 125 375 A 15 25 35 1 0 170 430')"}, + {at: 0.875, expect: "path('M 275 225 A 45 55 65 0 1 350 310')"}, + {at: 1, expect: "path('M 300 200 A 50 60 70 0 1 380 290')"}, + {at: 2, expect: "path('M 500 0 A 90 100 110 0 1 620 130')"} + ]); + test_interpolation({ + property: 'offset-path', + from: "path('m 100 400 a 10 20 30 1 0 40 50')", + to: "path('m 300 200 a 50 60 70 0 1 80 90')" + }, [ + {at: -1, expect: "path('M -100 600 A -30 -20 -10 1 0 -100 610')"}, + {at: 0, expect: "path('M 100 400 A 10 20 30 1 0 140 450')"}, + {at: 0.125, expect: "path('M 125 375 A 15 25 35 1 0 170 430')"}, + {at: 0.875, expect: "path('M 275 225 A 45 55 65 0 1 350 310')"}, + {at: 1, expect: "path('M 300 200 A 50 60 70 0 1 380 290')"}, + {at: 2, expect: "path('M 500 0 A 90 100 110 0 1 620 130')"} + ]); + </script> + </body> +</html> |