fune/testing/web-platform/tests/css/css-transforms/transform-with-sign-function.html
Daniil Sakhapov f8004ea635 Bug 1900317 [wpt PR 46588] - Don't use GetDoubleValue for scale property parsing, a=testonly
Automatic update from web-platform-tests
Don't use GetDoubleValue for scale property parsing

Bug: 40944203
Change-Id: Ibb98fbe2334b0f3cb7a8376ba22335c59bb62bda
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5585017
Reviewed-by: Anders Hartvoll Ruud <andruud@chromium.org>
Commit-Queue: Daniil Sakhapov <sakhapov@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1309260}

--

wpt-commits: a975c0fc84f2a43f7a9bccc3d8f1d68f3d348828
wpt-pr: 46588
2024-06-05 09:01:33 +00:00

26 lines
1.9 KiB
HTML

<!DOCTYPE html>
<link rel="help" href="https://drafts.csswg.org/css-values-4/#sign-funcs">
<link rel="author" title="sakhapov@chromuim.org">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="../support/numeric-testcommon.js"></script>
<style>
#target {
font-size: 10px;
}
</style>
<div id="target"></div>
<script>
test_math_used('skew(calc(sign(1em - 1px) * 2deg), calc(sign(1em - 1px) * 2deg))', 'skew(2deg, 2deg)', {prop:'transform'});
test_math_used('skewX(calc(sign(1em - 1px) * 2deg))', 'skewX(2deg)', {prop:'transform'});
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'});
test_math_used('calc(sign(1em - 1px) * 2) calc(sign(1em - 1px) * 2) calc(sign(1em - 1px) * 2)', '2 2 2', {prop:'scale'});
</script>