Repository navigation
Update data for Element.getAnimations() - #5743
Conversation
|
@Elchi3 could I request a review from someone please |
|
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. |
Bug reference: https://bugzilla.mozilla.org/show_bug.cgi?id=1619821 |
|
Which is all to say, this looks great to me. Thanks for the very detailed research! |
Thanks! That bug is newer than this PR so I've updated it accordingly now. |
birtles
left a comment
There was a problem hiding this comment.
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).
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:
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.