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