Skip to content

Add compat data for Animation#975

Merged
Elchi3 merged 4 commits intomdn:masterfrom
CalmBit:animation
Feb 12, 2018
Merged

Add compat data for Animation#975
Elchi3 merged 4 commits intomdn:masterfrom
CalmBit:animation

Conversation

@CalmBit
Copy link
Contributor

@CalmBit CalmBit commented Feb 8, 2018

Adding compat data for Animation (https://developer.mozilla.org/en-US/docs/Web/API/Animation)

😄

@CalmBit CalmBit mentioned this pull request Feb 8, 2018
19 tasks
@Elchi3 Elchi3 added the data:api Compat data for Web APIs. https://developer.mozilla.org/docs/Web/API label Feb 9, 2018
Copy link
Contributor

@teoli2003 teoli2003 left a comment

Choose a reason for hiding this comment

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

It is already really good! There are two (non-obvious) structures, "alternate_name" and "flags" that allow to describe some of the notes in a machine readable format.

I've marked some occurrences of each.

"mdn_url": "https://developer.mozilla.org/docs/Web/API/Animation",
"support": {
"webview_android": {
"version_added": "39",
Copy link
Contributor

Choose a reason for hiding this comment

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

Rather than a note, we can describe this using"alternate_name

"webview_android": [
{
"version_added": "44"
},
{
"alternate_name": "AnimationPlayer",
"version_added": "39",
"version_removed": "44"
}
]
(indentation not necessarily correct)

},
"firefox": {
"version_added": "48",
"notes": "The Web Animations API is only enabled by default in Firefox Developer Edition and Nightly builds. You can enable it in release builds by setting the preference <code>dom.animations-api.core.enabled</code> to <code>true</code>, and can disable it in any Firefox version by setting this preference to <code>false</code>."
Copy link
Contributor

Choose a reason for hiding this comment

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

This has to be described using the "flags", the schema documentation has examples.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'll do this all in a bit - thank you! 😄

@teoli2003
Copy link
Contributor

@CalmBit This is already really good! There are two concepts you didn't know, and after that we will need to make a second pass of review to check the details, but we are very close to be landing this.

Good Job! Thank you a lot for your help.

@CalmBit
Copy link
Contributor Author

CalmBit commented Feb 9, 2018

Alright, there's at least some of them converted - I wasn't so sure about things like different versions returning different values from other calls, so I left those alone. Was there any path you'd suggest for them?

Copy link
Member

@Elchi3 Elchi3 left a comment

Choose a reason for hiding this comment

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

This looks good to me now, well done!

If you're interested, I think some of the Firefox version numbers could be corrected here as a follow-up. Some info might be wrong in the current tables. There is https://birtles.github.io/areweanimatedyet/ with details and links to bugs where features got implemented. I think it got enabled by default without the flag in Firefox 48, but individual members got implemented behind the flag in earlier versions.

But as our main focus is just getting the current info migrated, this is all good for now :) Thanks again!

@Elchi3 Elchi3 dismissed teoli2003’s stale review February 12, 2018 10:56

Comments are addressed

@Elchi3 Elchi3 merged commit 19589da into mdn:master Feb 12, 2018
@CalmBit CalmBit deleted the animation branch February 12, 2018 17:24
@CalmBit
Copy link
Contributor Author

CalmBit commented Feb 12, 2018

#1052 should be the first step to addressing most of that data!

dontcallmedom pushed a commit to dontcallmedom/browser-compat-data that referenced this pull request Mar 17, 2018
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.

3 participants