Closed Bug 1975174 Opened 2 months ago Closed 2 months ago

DOMMatrix: rotateAxisAngleSelf(0, 0, z, alpha) should result in 2D matrix

Categories

(Core :: DOM: Core & HTML, defect)

Firefox 140
defect

Tracking

()

RESOLVED FIXED
142 Branch
Tracking Status
firefox142 --- fixed

People

(Reporter: danburzo, Assigned: saschanaz)

Details

Attachments

(1 file)

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:140.0) Gecko/20100101 Firefox/140.0

Steps to reproduce:

Evaluate: new DOMMatrix().rotateAxisAngleSelf(0,0,3,30).is2D

Actual results:

The resulting matrix should be 2D.

Expected results:

is2D = false

Oops, I mixed up the expected and actual fields. What I meant is that according to spec, rotateAxisAngleSelf() produces a 2D matrix (is2D = true) when both x and y are zero. Currently, Firefox 140/macOS returns is2D = false.

Component: Untriaged → DOM: Core & HTML
Product: Firefox → Core

Kagami, looks like you worked on DOMMatrix.cpp, could you check this bug report? Thanks!

Flags: needinfo?(krosylight)

I wonder it's worth keeping the current implementation deviation that we don't have is2D check but instead have mMatrix2D/3D. Seems that only complicates the implementation without a clear win.

Assignee: nobody → krosylight
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Flags: needinfo?(krosylight)
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/53602 for changes under testing/web-platform/tests
Pushed by amarc@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/9bb13a701cae https://hg.mozilla.org/integration/autoland/rev/70caba360c04 Revert "Bug 1975174 - Fix rotateAxisAngleSelf not to always call Ensure3DMatrix r=smaug" for causing mochitest failures @ test_WebKitCSSMatrix.html

Backed out for causing mochitest failures @ test_WebKitCSSMatrix.html

Flags: needinfo?(krosylight)
Upstream PR merged by moz-wptsync-bot
Flags: needinfo?(krosylight)
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/53624 for changes under testing/web-platform/tests
Status: ASSIGNED → RESOLVED
Closed: 2 months ago
Resolution: --- → FIXED
Target Milestone: --- → 142 Branch
Upstream PR merged by moz-wptsync-bot
QA Whiteboard: [qa-triage-done-c143/b142]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: