Skip to content

Updates to DOMPoint*, DOMRect*, and DOMQuad#4828

Merged
queengooborg merged 2 commits intomdn:masterfrom
a2sheppy:geometry-workers
Sep 21, 2019
Merged

Updates to DOMPoint*, DOMRect*, and DOMQuad#4828
queengooborg merged 2 commits intomdn:masterfrom
a2sheppy:geometry-workers

Conversation

@a2sheppy
Copy link
Copy Markdown
Contributor

Firefox 69 introduced several changes to these. In
addition, a number of the existing entries were either
missing or wrong, and several members that were
added in the past were not listed. This should bring
everything up to date.

For the changes made, the sources are below.

For all of these, Edge is not available as the entire
Geometry Interfaces API is under consideration still.
For Safari, the API was almost completely implemented on
first addition in Safari 10.1, with some stuff added in
Safari 11.

Worker support information:

Addition of DOMQuad:

Addition of static constructors (fromPoint(), fromRect(), fromQuad()):

  • Safari: Present from the beginning
  • Firefox

Thankfully, it's easy to bop around the WebKit code
to isolate versions. I adore how well they've tagged
and set up branches and releases to make it easy
to identify releases that implement things.

A checklist to help your pull request get merged faster:

  • Summarize your changes
  • Data: link to resources that verify support information (such as browser's docs, changelogs, source control, bug trackers, and tests)
  • Data: if you tested something, describe how you tested with details like browser and version
  • Review the results of the linter and fix problems reported (If you need help, please ask in a comment!)
  • Link to related issues or pull requests, if any

Firefox 69 introduced several changes to these. In
addition, a number of the existing entries were either
missing or wrong, and several members that were
added in the past were not listed. This should bring
everything up to date.

For the changes made, the sources are below.

*For all of these, Edge is not available as the entire
Geometry Interfaces API is under consideration still.
For Safari, the API was almost completely implemented on
first addition in Safari 10.1, with some stuff added in
Safari 11.*

Worker support information:
* [Safari](https://trac.webkit.org/browser/webkit/branches/safari-603.1.30.0-branch/Source/WebCore/dom/DOMPoint.idl)
* [Chrome](https://codereview.chromium.org/2650583009)
* [Firefox](https://bugzilla.mozilla.org/show_bug.cgi?id=1420580)

Addition of DOMQuad:
* [Safari](https://trac.webkit.org/browser/webkit/branches/safari-603.1.30.0-branch/Source/WebCore/dom/DOMRect.idl)
* [Firefox](https://bugzilla.mozilla.org/show_bug.cgi?id=917755)

Addition of static constructors (fromPoint(), fromRect(), fromQuad()):
* Safari: Present from the beginning
* [Firefox](https://bugzilla.mozilla.org/show_bug.cgi?id=1558101)

Thankfully, it's easy to bop around the WebKit code
to isolate versions. I adore how well they've tagged
and set up branches and releases to make it easy
to identify releases that implement things.
@a2sheppy a2sheppy added this to the Peppermint (S3 Q3 2019) milestone Sep 16, 2019
@ghost ghost added the data:api Compat data for Web APIs. https://developer.mozilla.org/docs/Web/API label Sep 16, 2019
Copy link
Copy Markdown
Contributor

@queengooborg queengooborg left a comment

Choose a reason for hiding this comment

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

Looking good so far! Just got a couple of changes I'd like to request:

  1. I suggested Opera, Opera Android, and Samsung Internet versions based upon the data we have. Just a little completionist-type change!
  2. iOS 10.3 was what had Safari 10.1. Can we update Safari iOS to say "10.3" whenever Safari Desktop is "10.1"? (I'm writing up a PR to remove those excess Safari iOS versions to reduce these issues in the future!)
  3. I noticed that DOMQuad was marked as Safari 11, yet the changeset you've linked shows it was implemented in at least 603.1.30, which would be present in Safari 10.1 (WebKit 603.2.1). Can you clarify the reason why this was marked as Safari 11 instead?

* Safari iOS 10.1 isn't a thing; it's actually 10.3.
* Added information for Samsung and Opera/Opera Android
* Confirmed that some other things were right, like
DOMQuad's introduction in iOS 11.
@queengooborg queengooborg self-requested a review September 17, 2019 18:35
Copy link
Copy Markdown
Contributor

@queengooborg queengooborg left a comment

Choose a reason for hiding this comment

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

Thanks for the changes, looking good to me! 👍

@queengooborg queengooborg merged commit 1e8a2e0 into mdn:master Sep 21, 2019
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.

2 participants