-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adds compat data for AnimationEvent #1017
Conversation
Fixes #965 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is a member missing here https://developer.mozilla.org/en-US/docs/Web/API/AnimationEvent/animationName
api/AnimationEvent.json
Outdated
}, | ||
"chrome": [ | ||
{ | ||
"version_added": "1", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please swap this around, the more relevant version is the unprefixed one. (the first element will be rendered as the main compat cell in the MDN tables, other version ranges will be put into the expandable details.)
"chrome": [
{
"version_added": "43"
}
{
"version_added": "1",
"prefix": "webkit"
},
],
api/AnimationEvent.json
Outdated
"mdn_url": "https://developer.mozilla.org/docs/Web/API/AnimationEvent", | ||
"support": { | ||
"webview_android": { | ||
"version_added": null, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change to true
.
api/AnimationEvent.json
Outdated
"support": { | ||
"webview_android": { | ||
"version_added": null, | ||
"prefix": "webkit" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unprefixed in 43.
}, | ||
"chrome": [ | ||
{ | ||
"version_added": "43" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this how we note when something was unprefixed? @Elchi3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, the array indicates support ranges.
So, there is a support range starting from version 43 where this is fully available and unprefixed.
Then there is a second support ranges where it was available (version not known) and prefixed.
The rendered tables take the first array element as the one to render in the main cell. The other support ranges will be treated as secondary and put into the expandable info. See e.g. https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/imageSmoothingEnabled#Browser_compatibility
api/AnimationEvent.json
Outdated
} | ||
], | ||
"chrome_android": { | ||
"version_added": "43" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
true
for original version added. "43"
is for when the prefix was removed.
api/AnimationEvent.json
Outdated
"mdn_url": "https://developer.mozilla.org/docs/Web/API/AnimationEvent/AnimationEvent", | ||
"support": { | ||
"webview_android": { | ||
"version_added": false |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be true
and prefix removed in "43"
. Repeat for Chrome and Chrome Android.
"version_added": true | ||
}, | ||
"chrome_android": { | ||
"version_added": "43" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All three versions of Chrome should have the same data as for the constructor.
api/AnimationEvent.json
Outdated
"version_added": "4" | ||
}, | ||
"webview_android": { | ||
"version_added": null |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be true
.
api/AnimationEvent.json
Outdated
"version_removed": "23" | ||
}, | ||
"opera_android": { | ||
"version_added": null |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
true
.
Well done! We're almost there. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
Fixes #965