Skip to content

Commit 450f1e8

Browse files
sahirvchromium-wpt-export-bot
authored andcommitted
Interpolation for Scale and Translate according to CommitStyles
This change updates the Blend operation for scale and translate transforms, along with CSSFunctionValue calculations for the respective transforms. A new Args property is introduced to TransformOperation that keeps track of how many arguments the primitive scale() and translate() should have during interpolation. Follow-up work will include rotate as well as computedStyleMap. Bug: 1181086 Change-Id: I74c54f47feec66ed5247699543afd1776be8fdcd Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3163382 Reviewed-by: David Baron <[email protected]> Reviewed-by: Philip Rogers <[email protected]> Reviewed-by: Anders Hartvoll Ruud <[email protected]> Reviewed-by: Olga Gerchikov <[email protected]> Commit-Queue: Sahir Vellani <[email protected]> Cr-Commit-Position: refs/heads/main@{#927299}
1 parent 3d48c9d commit 450f1e8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

css/css-transforms/animation/transform-interpolation-computed-value.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,9 @@
5353
interpolation_test('translateZ(-50px)','translateZ(50px)', 'translateZ(0px)');
5454
interpolation_test('translate(0%)', 'translate(50%)', 'translate(25%)');
5555
interpolation_test('translate(50%)', 'translate(100%, 50%)', 'translate(75%, 25%)');
56+
interpolation_test('translate(0%, 50%)', 'translate(50%, 100%)', 'translate(25%, 75%)');
5657
interpolation_test('translate3d(0,0,-50px)','translateZ(50px)', 'translate3d(0px, 0px, 0px)');
58+
interpolation_test('translate(50px, 0px)', 'translate(100px, 0px)', 'translate(75px)')
5759

5860
interpolation_test('rotate(30deg)', 'rotate(90deg)', 'rotate(60deg)');
5961
interpolation_test('rotateZ(30deg)', 'rotateZ(90deg)', 'rotateZ(60deg)');

0 commit comments

Comments
 (0)