Bug 1649893 [wpt PR 24418] - Fix CSS typed OM CSSSkewX and CSSSkewY toMatrix method...
commitc2ac8a7755d884f6f50109bf1a119f9f776405c2
authorChany Arpin-Plante <chany.arpin@gmail.com>
Fri, 17 Jul 2020 11:11:33 +0000 (17 11:11 +0000)
committermoz-wptsync-bot <wptsync@mozilla.com>
Sat, 18 Jul 2020 02:09:05 +0000 (18 02:09 +0000)
treee867d1f1a99ac6efa73b7253229be87bba65e9b6
parent1f05a6fbda9b7afe76aa25fc822197f913d9a673
Bug 1649893 [wpt PR 24418] - Fix CSS typed OM CSSSkewX and CSSSkewY toMatrix method to use degrees instead of radians., a=testonly

Automatic update from web-platform-tests
Fix CSS typed OM CSSSkewX and CSSSkewY toMatrix method to use degrees instead of radians.

The toMatrix method of a CSSTransformComponent should return a DOMMatrix
representing the object transformation.
https://www.w3.org/TR/css-typed-om-1/#dom-csstransformcomponent-tomatrix

The skewXSelf and skewYSelf methods used to apply a transformation on a
matrix must be provided with an angle parameter expressed in degrees.
https://www.w3.org/TR/geometry-1/#dom-dommatrix-skewxself
https://www.w3.org/TR/geometry-1/#dom-dommatrix-skewyself

Since the angles passed to the skewXSelf and skewYSelf were in radians,
DOMMatrix returned by the toMatrix method of those two components was incorrect.

R=alancutter@chromium.org

Change-Id: I5edc1cdf1493184584154723508c6e20c212ac92
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2242008
Commit-Queue: Alan Cutter <alancutter@chromium.org>
Reviewed-by: Alan Cutter <alancutter@chromium.org>
Cr-Commit-Position: refs/heads/master@{#786632}

--

wpt-commits: f8d07d1a6788da6efee2913d5768528de28c9b57
wpt-pr: 24418
testing/web-platform/tests/css/css-typed-om/stylevalue-subclasses/cssTransformComponent-toMatrix.html