-
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
Add at-rule @keyframes compat data #476
Conversation
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.
Really good, we just need to get CSS Animations prefixes straight. (And we need to tell this grim and scary story ;-) )
css/at-rules/keyframes.json
Outdated
}, | ||
{ | ||
"prefix": "-o-", | ||
"version_added": "12" |
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.
"version_removed": "15"
css/at-rules/keyframes.json
Outdated
}, | ||
"opera": [ | ||
{ | ||
"version_added": "12.10" |
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.
"version_removed": "15"
(Opera lost support for unprefixed CSS Animations when moving to Chromium/Blink
css/at-rules/keyframes.json
Outdated
"version_added": "12" | ||
} | ||
], | ||
"opera_android": { |
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.
Same as Opera.
css/at-rules/keyframes.json
Outdated
} | ||
], | ||
"safari_ios": { | ||
"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.
Set 'true'. Also add a prefix "-webkit-" version, also set to 'true'
css/at-rules/keyframes.json
Outdated
"version_added": "10" | ||
}, | ||
"ie_mobile": { | ||
"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.
Set to 'true'
css/at-rules/keyframes.json
Outdated
"opera": [ | ||
{ | ||
"version_added": "12.10" | ||
}, |
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.
Add an extra entry for the -webkit- prefixing story:
{
"version_added": "15",
"prefix": "-webkit-"
},
{ | ||
"version_added": "16" | ||
}, | ||
{ |
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.
We need to add two {} blocks to describe the story of -webkit- prefixes in Firefox (added in 44 behind a pref, without a pref in 49)
{
"version_added": "49",
"prefix": "-webkit-"
},
{
"version_added": "44",
"prefix": "-webkit-",
"flag": {
"type": "preference",
"name": "layout.css.prefixes.webkit",
"value_to_set": "true"
}
},
"version_added": "5" | ||
} | ||
], | ||
"firefox_android": [ |
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.
Same as Firefox (-webkit- prefixes)
css/at-rules/keyframes.json
Outdated
"__compat": { | ||
"mdn_url": "https://developer.mozilla.org/docs/Web/CSS/@keyframes", | ||
"support": { | ||
"webview_android": { |
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.
Added unprefixed version in "43" too.
css/at-rules/keyframes.json
Outdated
"version_added": true | ||
} | ||
], | ||
"chrome_android": { |
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.
Also supported (same as "chrome")
css/at-rules/keyframes.json
Outdated
"safari_ios": { | ||
"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.
Add a "status" box. (This is standard behaviour; the spec says 'Animations override all normal rules, but are overriden by !important rules. ')
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.
This one is really close to land :-)
@Elchi3 Quick question: is it ok to have a dash in the identifier (and in the directory name):
? |
Yes, that should be alright. The mdn/data repo also uses "at-rules" and accessing the data using " |
OK, I think this one is ready for another look, @teoli2003. This did remind me of a question, too: I've seen tables with Android Webview version numbers that seem to be Android version numbers (e.g., |
Also, I agree this is a grim and scary story, but at least it's the right time of year for it. 🎃 |
Before Android 4.4, the Webview wasn't based on Chromium and has only the Android version. From Android 4.4, it is based on Chromium (like 4.4 is based on Chromium 30). So Webview should not be the Android version for 4.4 or larger. @Elchi3 is adding version validation and I think the Webview versions will added to these checks at some point. Meanwhile, I would say to not lose information (I prefer a 5 that we will convert to a Chrome-based version later to a true that will stay like this forever). |
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.
LGTM, r+
This PR adds one at-rule, @keyframes. Since it's the first of it's kind, I figured I should open a PR for this one alone.