diff options
Diffstat (limited to 'testing/web-platform/tests/css/css-properties-values-api/animation/custom-property-animation-transform-list-single-values.html')
-rw-r--r-- | testing/web-platform/tests/css/css-properties-values-api/animation/custom-property-animation-transform-list-single-values.html | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/css-properties-values-api/animation/custom-property-animation-transform-list-single-values.html b/testing/web-platform/tests/css/css-properties-values-api/animation/custom-property-animation-transform-list-single-values.html new file mode 100644 index 0000000000..b9bce6dd0b --- /dev/null +++ b/testing/web-platform/tests/css/css-properties-values-api/animation/custom-property-animation-transform-list-single-values.html @@ -0,0 +1,57 @@ +<!DOCTYPE html> +<link rel="help" href="https://drafts.css-houdini.org/css-properties-values-api-1"> +<script src="/resources/testharness.js"></script> +<script src="/resources/testharnessreport.js"></script> +<script src="../resources/utils.js"></script> +<div id="target"></div> +<script> + +animation_test({ + syntax: "<transform-list>", + inherits: false, + initialValue: "translateX(0px)" +}, { + keyframes: ["translateX(100px)", "translateX(200px)"], + expected: "translateX(150px)" +}, 'Animating a custom property of type <transform-list> containing a single value'); + +animation_test({ + syntax: "<transform-list>", + inherits: false, + initialValue: "translateX(100px)" +}, { + keyframes: "translateX(200px)", + expected: "translateX(150px)" +}, 'Animating a custom property of type <transform-list> containing a single value with a single keyframe'); + +animation_test({ + syntax: "<transform-list>", + inherits: false, + initialValue: "translateX(100px)" +}, { + composite: "add", + keyframes: ["translateX(200px)", "translateX(300px)"], + expected: "translateX(100px) translateX(250px)" +}, 'Animating a custom property of type <transform-list> containing a single value with additivity'); + +animation_test({ + syntax: "<transform-list>", + inherits: false, + initialValue: "translateX(100px)" +}, { + composite: "add", + keyframes: "translateX(300px)", + expected: "translateX(100px) translateX(150px)" +}, 'Animating a custom property of type <transform-list> containing a single value with a single keyframe and additivity'); + +animation_test({ + syntax: "<transform-list>", + inherits: false, + initialValue: "translateX(100px)" +}, { + iterationComposite: "accumulate", + keyframes: ["translateX(0px)", "translateX(100px)"], + expected: "translateX(250px)" +}, 'Animating a custom property of type <transform-list> containing a single value with iterationComposite'); + +</script> |