Skip to content

Combine SVGMatrix and WebKitCSSMatrix into DOMMatrix#18768

Merged
queengooborg merged 4 commits intomdn:mainfrom
queengooborg:api/DOMMatrix
Mar 10, 2023
Merged

Combine SVGMatrix and WebKitCSSMatrix into DOMMatrix#18768
queengooborg merged 4 commits intomdn:mainfrom
queengooborg:api/DOMMatrix

Conversation

@queengooborg
Copy link
Copy Markdown
Contributor

@queengooborg queengooborg commented Jan 28, 2023

This PR takes WebKitCSSMatrix and SVGMatrix and combines them into DOMMatrix. Both of these are defined as LegacyWindowAliases in the IDL, and should not have separate files. (The subfeatures will probably need to be updated; a future collector version will help fix this.)

Fixes #6726.

@github-actions github-actions Bot added the data:api Compat data for Web APIs. https://developer.mozilla.org/docs/Web/API label Jan 28, 2023
@queengooborg queengooborg requested a review from Elchi3 January 28, 2023 22:25
@Elchi3 Elchi3 added the needs content update This PR needs a corresponding update to mdn/content to update the documentation label Jan 31, 2023
@queengooborg queengooborg removed the needs content update This PR needs a corresponding update to mdn/content to update the documentation label Feb 13, 2023
Comment thread api/DOMMatrix.json Outdated
"support": {
"chrome": {
"version_added": "61"
"version_added": "2"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think we should change the data for the constructor entry. Adding aliases that go back would be OK, and look just like the parent feature, but this data I would interpret as new DOMMatrix() being available since Chrome 2, which it isn't. The data isn't always shown with the parent feature after all:
https://developer.mozilla.org/docs/Web/API/DOMMatrix/DOMMatrix

@foolip
Copy link
Copy Markdown
Contributor

foolip commented Mar 9, 2023

Also, the twists and turns that finally led up to DOMMatrix are kind of hilarious. Possibly a record in slowest and weirdest API rollout ever? I had to toot: https://mastodon.nu/@foolip/109993721704874035

Copy link
Copy Markdown
Contributor

@foolip foolip left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like we could mirror more, but approving so you can land after updating, if the change is to just mirror.

Comment thread api/DOMMatrix.json
"alternative_name": "WebKitCSSMatrix"
}
],
"safari_ios": [
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we mirror here, or what's the difference if we do?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are some slight differences regarding Safari to Safari iOS mapping around there, so I'm skeptical about mirroring. (If the mirroring output was the same as what's currently shown, the linter would freak out and say we should use "mirror"!)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, OK. Thanks for checking!

Comment thread api/DOMMatrix.json Outdated
@queengooborg queengooborg merged commit 0ac9a4e into mdn:main Mar 10, 2023
@queengooborg queengooborg deleted the api/DOMMatrix branch March 10, 2023 05:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

data:api Compat data for Web APIs. https://developer.mozilla.org/docs/Web/API

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Does WebKitCSSMatrix deserve a separate support statement?

3 participants