Skip to content

Commit

Permalink
Use ComputeDegrees with conversion data for rotate*() transforms
Browse files Browse the repository at this point in the history
Bug: 40946458
Change-Id: I1fbdf113ee4d4f7d32d2c580108e967257ea3150
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5569744
Reviewed-by: Anders Hartvoll Ruud <andruud@chromium.org>
Commit-Queue: Daniil Sakhapov <sakhapov@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1306413}
  • Loading branch information
danielsakhapov authored and chromium-wpt-export-bot committed May 27, 2024
1 parent 5addc77 commit f818c63
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions css/css-transforms/transform-with-sign-function.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,9 @@
test_math_used('skewY(calc(sign(1em - 1px) * 2deg))', 'skewY(2deg)', {prop:'transform'});
test_math_used('matrix(calc(sign(1em - 1px) * 2), calc(sign(1em - 1px) * 2), calc(sign(1em - 1px) * 2), calc(sign(1em - 1px) * 2), calc(sign(1em - 1px) * 2), calc(sign(1em - 1px) * 2))', 'matrix(2, 2, 2, 2, 2, 2)', {prop:'transform'});
test_math_used('matrix3d(calc(sign(1em - 1px) * 2), calc(sign(1em - 1px) * 2), calc(sign(1em - 1px) * 2), calc(sign(1em - 1px) * 2), calc(sign(1em - 1px) * 2), calc(sign(1em - 1px) * 2), calc(sign(1em - 1px) * 2), calc(sign(1em - 1px) * 2),calc(sign(1em - 1px) * 2), calc(sign(1em - 1px) * 2), calc(sign(1em - 1px) * 2), calc(sign(1em - 1px) * 2), calc(sign(1em - 1px) * 2), calc(sign(1em - 1px) * 2), calc(sign(1em - 1px) * 2), calc(sign(1em - 1px) * 2))', 'matrix3d(2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2)', {prop:'transform'});
test_math_used('rotate(calc(sign(1em - 1px) * 2deg))', 'rotate(2deg)', {prop:'transform'});
test_math_used('rotateX(calc(sign(1em - 1px) * 2deg))', 'rotateX(2deg)', {prop:'transform'});
test_math_used('rotateY(calc(sign(1em - 1px) * 2deg))', 'rotateY(2deg)', {prop:'transform'});
test_math_used('rotateZ(calc(sign(1em - 1px) * 2deg))', 'rotateZ(2deg)', {prop:'transform'});

</script>

0 comments on commit f818c63

Please sign in to comment.