Skip to content

Update data for Element.getAnimations() - #5743

Merged
Elchi3 merged 3 commits into
mdn:masterfrom
lpd-au:element-getanimations
Mar 17, 2020
Merged

Elchi3 merged 3 commits into
mdn:masterfrom
lpd-au:element-getanimations

Conversation

@lpd-au

@lpd-au lpd-au commented Feb 22, 2020

Copy link
Copy Markdown
Contributor

This pull request updates the data for Element.getAnimations(). Please note that this is a different entry but similar function to DocumentOrShadowRoot.getAnimations().

Tests used here are:

Firefox

Firefox data is mostly taken from the relevant bugs:

I verified basic support is present and css animations are returned with the necessary flags in Firefox 40 on Windows 7.

Firefox for Android

Tested on a Samsung Galaxy S10e with Firefox for Android 68, the function does not appear to return any animations added via CSS. This is different to desktop support and I have no way of verifying support on previous versions, so the version is set to true.

Chrome & Chrome for Android

Chrome data was tested using various desktop versions on Windows 7. The relevant bugs are below:

Chrome for Android latest version appears to match the current desktop implementation, so I've mirrored the data.

Android WebView

Android WebView data is mirrored from Chrome for Android data.

Edge

Edge 18 does not support the web animations API at all so the Edge data is mirrored from Chrome.

Opera & Opera for Android

Opera and Opera for Android data is mirrored by mapping the Chrome versions using their release notes: https://help.opera.com/en/opera-version-history/.

Samsung Internet Browser

Samsung Internet Browser data is mirrored from Chrome for Android data using the engine version data in browsers/samsunginternet_android.json.

Safari & Safari for iOS

The Safari data should look like this:

  • Safari 9.1: Does not support experimental features at all afaik? (Or in some different way I do not know of.)
  • Safari 10-10.1: Function exists with no preferences but always returns an empty array.
  • Safari 11-11.1: Function exists behind "Web Animations" preference as an initial implementation.
  • Safari 12-12.1: Returns css animations behind the "CSS Animations via Web Animations" preference.
  • Safari 13: No change.
  • Safari TP: Release notes indicate that options.subtree will be supported.

Data (except for TP) is tested via browserstack. Unfortunately I have no idea how I can represent these ranges in the data format, so instead I have just added the Safari 12.1 data with version set to true.

Safari 13 for iOS appears to have the same support as regular Safari 13 on desktop, so I have mirrored the data.

@ghost ghost added the data:api Compatibility data for Web API features. https://developer.mozilla.org/docs/Web/API label Feb 22, 2020
@lpd-au

lpd-au commented Mar 13, 2020

Copy link
Copy Markdown
Contributor Author

@Elchi3 could I request a review from someone please

@Elchi3

Elchi3 commented Mar 16, 2020

Copy link
Copy Markdown
Member

Thanks for your detailed explanations and work on this PR, @lpd-au 👍

I will try to look this through, but also ping @birtles who knows a lot more about Web Animations and its availability than I do. Brian, if you have a minute to double check this, we would appreciate it.

@birtles

birtles commented Mar 16, 2020

Copy link
Copy Markdown
Contributor

getAnimations() (for both Element and DocumentOrShadowRoot) is enabled by default in Firefox on all channels starting from 75 (current beta). Prior to that it was only enabled by default in Nightly.

Other than that, for the Web Animations API, we've generally taken the approach of not reporting support for features that haven't shipped to release channels (since there have been so many changes in behavior while they have been behind a flag--so it's hard to say when it was first "supported"). I'm not opposed to adding the detailed information, but if it proves difficult, I wouldn't hesitate to drop it.

@birtles

birtles commented Mar 16, 2020

Copy link
Copy Markdown
Contributor

getAnimations() (for both Element and DocumentOrShadowRoot) is enabled by default in Firefox on all channels starting from 75 (current beta). Prior to that it was only enabled by default in Nightly.

Bug reference: https://bugzilla.mozilla.org/show_bug.cgi?id=1619821

@birtles

birtles commented Mar 16, 2020

Copy link
Copy Markdown
Contributor

Which is all to say, this looks great to me. Thanks for the very detailed research!

@lpd-au

lpd-au commented Mar 17, 2020

Copy link
Copy Markdown
Contributor Author

getAnimations() (for both Element and DocumentOrShadowRoot) is enabled by default in Firefox on all channels starting from 75 (current beta).
Bug reference: https://bugzilla.mozilla.org/show_bug.cgi?id=1619821

Thanks! That bug is newer than this PR so I've updated it accordingly now.

@birtles birtles left a comment

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.

The Firefox part looks good to me. I'm not well versed enough in the BCD format to know for sure, but it seems right to me (and I believe there are various automated tests for this too).

@Elchi3 Elchi3 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thank you @lpd-au and @birtles 👍

@Elchi3
Elchi3 merged commit 0a25863 into mdn:master Mar 17, 2020
@lpd-au
lpd-au deleted the element-getanimations branch March 17, 2020 12:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

data:api Compatibility data for Web API features. https://developer.mozilla.org/docs/Web/API

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants