From 40a355a42d4a9444dc753c04c6608dade2f06a23 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 19 Apr 2024 03:13:27 +0200 Subject: Adding upstream version 125.0.1. Signed-off-by: Daniel Baumann --- ...ate-interpolation-math-functions-tentative.html | 46 ++++++++++++++++++++++ .../scale-animation-math-functions-tentative.html | 46 ++++++++++++++++++++++ .../support/transform-interpolation-reftests.js | 16 +++++--- .../transform-box/svgbox-stroke-box-005.html | 24 +++++++++++ 4 files changed, 127 insertions(+), 5 deletions(-) create mode 100644 testing/web-platform/tests/css/css-transforms/animation/rotate-interpolation-math-functions-tentative.html create mode 100644 testing/web-platform/tests/css/css-transforms/animation/scale-animation-math-functions-tentative.html create mode 100644 testing/web-platform/tests/css/css-transforms/transform-box/svgbox-stroke-box-005.html (limited to 'testing/web-platform/tests/css/css-transforms') diff --git a/testing/web-platform/tests/css/css-transforms/animation/rotate-interpolation-math-functions-tentative.html b/testing/web-platform/tests/css/css-transforms/animation/rotate-interpolation-math-functions-tentative.html new file mode 100644 index 0000000000..eccb554fd8 --- /dev/null +++ b/testing/web-platform/tests/css/css-transforms/animation/rotate-interpolation-math-functions-tentative.html @@ -0,0 +1,46 @@ + + + + + rotate interpolation with css math functions + + + + + + + + + + + diff --git a/testing/web-platform/tests/css/css-transforms/animation/scale-animation-math-functions-tentative.html b/testing/web-platform/tests/css/css-transforms/animation/scale-animation-math-functions-tentative.html new file mode 100644 index 0000000000..2ad177469a --- /dev/null +++ b/testing/web-platform/tests/css/css-transforms/animation/scale-animation-math-functions-tentative.html @@ -0,0 +1,46 @@ + + + + + scale interpolation with css math functions + + + + + + + + + + + diff --git a/testing/web-platform/tests/css/css-transforms/animation/support/transform-interpolation-reftests.js b/testing/web-platform/tests/css/css-transforms/animation/support/transform-interpolation-reftests.js index d79cbedefe..4070aec84a 100644 --- a/testing/web-platform/tests/css/css-transforms/animation/support/transform-interpolation-reftests.js +++ b/testing/web-platform/tests/css/css-transforms/animation/support/transform-interpolation-reftests.js @@ -127,6 +127,13 @@ const midpointOptions = { delay: -duration/2 }; +// Constant-valued animation using the ending keyframe's value. +const referenceOptions = { + easing: 'steps(1, jump-start)', + duration: duration, + delay: -duration/2 +} + // Similar to midpointOptions, but to produce the interpolation result // at -1 instead of the interpolation result at 0.5. This easing curve // has zero slope at its midpoint of -100% (though does have curvature). @@ -169,9 +176,8 @@ async function createTests(tests) { takeScreenshot(); } -// Create references using an animation with identical keyframes for start -// and end so as to avoid rounding and anti-aliasing differences between -// animated and non-animated pathways. +// Create references using a constant-valued animation to avoid rounding and +// anti-aliasing differences between animated and non-animated pathways. async function createRefs(tests) { styleBody(); for (const obj of tests) { @@ -181,8 +187,8 @@ async function createRefs(tests) { initialStyle(div); finalStyle(div); var anim = div.animate( - {transform: [test[midIndex], test[midIndex]]}, - midpointOptions); + {transform: ['none', test[midIndex]]}, + referenceOptions); await anim.ready; } diff --git a/testing/web-platform/tests/css/css-transforms/transform-box/svgbox-stroke-box-005.html b/testing/web-platform/tests/css/css-transforms/transform-box/svgbox-stroke-box-005.html new file mode 100644 index 0000000000..c1a741b741 --- /dev/null +++ b/testing/web-platform/tests/css/css-transforms/transform-box/svgbox-stroke-box-005.html @@ -0,0 +1,24 @@ + +transform-box: border-box, stroke with vector-effect: non-scaling-stroke + + + + + + + + + + + -- cgit v1.2.3