Bug 1799772 [wpt PR 36878] - Tolerate -0 in css/geometry/DOMMatrix-invert-preserves...
commita7313abff6d907b79c281d5604c2b1075d085044
authorXianzhu Wang <wangxianzhu@chromium.org>
Thu, 10 Nov 2022 16:02:49 +0000 (10 16:02 +0000)
committermoz-wptsync-bot <wptsync@mozilla.com>
Fri, 11 Nov 2022 12:34:22 +0000 (11 12:34 +0000)
tree1ee24d13170c85b07d2956b8456235b6107a42e6
parent8ffef2da4cbb31ed23423d09ed0bad416dbf7c4e
Bug 1799772 [wpt PR 36878] - Tolerate -0 in css/geometry/DOMMatrix-invert-preserves-2d.html, a=testonly

Automatic update from web-platform-tests
Tolerate -0 in css/geometry/DOMMatrix-invert-preserves-2d.html

Neither JavaScript nor C++ distinguishes 0 and -0 in normal arithmetic.
DOMMatrix spec [1] also treats 0 and -0 as the same value.
For the test, the distinction only matters in assert_equals() which
specially checks -0 (not sure why) in test_harness.js.

This is needed to make the test pass with crrev.com/c/3996242 which
may produce -0 in the first two columns of the matrix in
Matrix44::RotateAboutZAxis(), which is allowed by the spec.

[1] https://www.w3.org/TR/geometry-1/#DOMMatrix

Bug: 1359528
Change-Id: I18564cee1efee401602b11538a025d8412257029
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4014943
Commit-Queue: Xianzhu Wang <wangxianzhu@chromium.org>
Reviewed-by: David Baron <dbaron@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1068841}

--

wpt-commits: 1decdb2cf0797fd2d2a917a27e21dec32581d835
wpt-pr: 36878
testing/web-platform/tests/css/geometry/DOMMatrix-invert-preserves-2d.html