diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 01:13:33 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 01:13:33 +0000 |
commit | 086c044dc34dfc0f74fbe41f4ecb402b2cd34884 (patch) | |
tree | a4f824bd33cb075dd5aa3eb5a0a94af221bbe83a /testing/web-platform/tests/css/motion/animation/offset-path-interpolation-007.html | |
parent | Adding debian version 124.0.1-1. (diff) | |
download | firefox-086c044dc34dfc0f74fbe41f4ecb402b2cd34884.tar.xz firefox-086c044dc34dfc0f74fbe41f4ecb402b2cd34884.zip |
Merging upstream version 125.0.1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'testing/web-platform/tests/css/motion/animation/offset-path-interpolation-007.html')
-rw-r--r-- | testing/web-platform/tests/css/motion/animation/offset-path-interpolation-007.html | 124 |
1 files changed, 124 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/motion/animation/offset-path-interpolation-007.html b/testing/web-platform/tests/css/motion/animation/offset-path-interpolation-007.html new file mode 100644 index 0000000000..6629f285d1 --- /dev/null +++ b/testing/web-platform/tests/css/motion/animation/offset-path-interpolation-007.html @@ -0,0 +1,124 @@ +<!DOCTYPE html> +<html> + <head> + <meta charset="utf-8"> + <title>offset-path interpolation with allow-discrete</title> + <link rel="help" href="https://drafts.fxtf.org/motion-1/#offset-path-property"> + <meta name="assert" content="offset-path supports animation with allow-discrete."> + <script src="/resources/testharness.js"></script> + <script src="/resources/testharnessreport.js"></script> + <script src="/css/support/interpolation-testcommon.js"></script> + </head> + <style> + .parent { + offset-path: circle(farthest-side); + } + .target { + offset-path: circle(10px); + } + </style> + <body> + <script> + 'use strict'; + + test_interpolation({ + property: 'offset-path', + behavior: 'allow-discrete', + from: 'circle(10px)', + to: 'inset(20px)', + }, [ + {at: -1, expect: 'circle(10px)'}, + {at: 0, expect: 'circle(10px)'}, + {at: 0.4, expect: 'circle(10px)'}, + {at: 0.5, expect: 'inset(20px)'}, + {at: 1, expect: 'inset(20px)'}, + {at: 1.5, expect: 'inset(20px)'}, + ]); + + test_interpolation({ + property: 'offset-path', + behavior: 'allow-discrete', + from: 'ellipse(at center)', + to: 'none', + }, [ + {at: -1, expect: 'ellipse(at center)'}, + {at: 0, expect: 'ellipse(at center)'}, + {at: 0.4, expect: 'ellipse(at center)'}, + {at: 0.5, expect: 'none'}, + {at: 1, expect: 'none'}, + {at: 1.5, expect: 'none'}, + ]); + + test_interpolation({ + property: 'offset-path', + behavior: 'allow-discrete', + from: neutralKeyframe, + to: 'none', + }, [ + {at: -1, expect: 'circle(10px)'}, + {at: 0, expect: 'circle(10px)'}, + {at: 0.4, expect: 'circle(10px)'}, + {at: 0.5, expect: 'none'}, + {at: 1, expect: 'none'}, + {at: 1.5, expect: 'none'}, + ]); + + test_interpolation({ + property: 'offset-path', + behavior: 'allow-discrete', + from: 'initial', + to: 'circle()', + }, [ + {at: -1, expect: 'none'}, + {at: 0, expect: 'none'}, + {at: 0.4, expect: 'none'}, + {at: 0.5, expect: 'circle()'}, + {at: 1, expect: 'circle()'}, + {at: 1.5, expect: 'circle()'}, + ]); + + test_interpolation({ + property: 'offset-path', + behavior: 'allow-discrete', + from: 'inherit', + to: 'circle()', + }, [ + {at: -0.1, expect: 'circle(farthest-side)'}, + {at: 0, expect: 'circle(farthest-side)'}, + {at: 0.4, expect: 'circle(farthest-side)'}, + {at: 0.5, expect: 'circle()'}, + {at: 1, expect: 'circle()'}, + {at: 1.5, expect: 'circle()'}, + ]); + + test_interpolation({ + property: 'offset-path', + behavior: 'allow-discrete', + from: 'unset', + to: 'inset(10%)', + }, [ + {at: -0.1, expect: 'none'}, + {at: 0, expect: 'none'}, + {at: 0.4, expect: 'none'}, + {at: 0.5, expect: 'inset(10%)'}, + {at: 1, expect: 'inset(10%)'}, + {at: 1.5, expect: 'inset(10%)'}, + ]); + + test_interpolation({ + property: 'offset-path', + behavior: 'allow-discrete', + from: 'ray(0deg)', + to: 'url("abc")', + }, [ + {at: -0.1, expect: 'ray(0deg)'}, + {at: 0, expect: 'ray(0deg)'}, + {at: 0.4, expect: 'ray(0deg)'}, + {at: 0.5, expect: 'url("abc")'}, + {at: 1, expect: 'url("abc")'}, + {at: 1.5, expect: 'url("abc")'}, + ]); + + </script> + </body> +</html> |