-
Notifications
You must be signed in to change notification settings - Fork 102
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 flexbox compat features and status #149
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,59 @@ | ||
spec: https://drafts.csswg.org/css-flexbox-1/ | ||
caniuse: flexbox | ||
usage_stats: https://chromestatus.com/metrics/feature/timeline/popularity/1692 | ||
status: | ||
is_baseline: true | ||
since: "2020-10-20" | ||
support: | ||
chrome: "57" | ||
edge: "79" | ||
firefox: "81" | ||
safari: "9" | ||
compat_features: | ||
- css.properties.align-content.flex_context | ||
# - css.properties.align-content.flex_context.center | ||
# - css.properties.align-content.flex_context.flex-end | ||
# - css.properties.align-content.flex_context.flex-start | ||
# - css.properties.align-content.flex_context.space-around | ||
# - css.properties.align-content.flex_context.space-between | ||
- css.properties.align-content.flex_context.stretch | ||
- css.properties.align-items.flex_context | ||
- css.properties.align-items.flex_context.baseline | ||
# - css.properties.align-items.flex_context.center | ||
# - css.properties.align-items.flex_context.flex-end | ||
# - css.properties.align-items.flex_context.flex-start | ||
# - css.properties.align-items.flex_context.stretch | ||
- css.properties.align-self.flex_context | ||
# - css.properties.align-self.flex_context.auto | ||
- css.properties.align-self.flex_context.baseline | ||
# - css.properties.align-self.flex_context.center | ||
# - css.properties.align-self.flex_context.flex-end | ||
# - css.properties.align-self.flex_context.flex-start | ||
- css.properties.align-self.flex_context.stretch | ||
- css.properties.display.flex | ||
- css.properties.display.inline-flex | ||
- css.properties.flex | ||
- css.properties.flex-basis | ||
- css.properties.flex-basis.auto | ||
- css.properties.flex-basis.max-content | ||
- css.properties.flex-basis.min-content | ||
- css.properties.flex-direction | ||
# - css.properties.flex-direction.column | ||
# - css.properties.flex-direction.column-reverse | ||
# - css.properties.flex-direction.row | ||
# - css.properties.flex-direction.row-reverse | ||
- css.properties.flex-flow | ||
- css.properties.flex-grow | ||
- css.properties.flex-shrink | ||
- css.properties.flex-wrap | ||
# - css.properties.flex-wrap.nowrap | ||
# - css.properties.flex-wrap.wrap | ||
# - css.properties.flex-wrap.wrap-reverse | ||
- css.properties.justify-content.flex_context | ||
# - css.properties.justify-content.flex_context.center | ||
# - css.properties.justify-content.flex_context.flex-end | ||
# - css.properties.justify-content.flex_context.flex-start | ||
# - css.properties.justify-content.flex_context.space-around | ||
# - css.properties.justify-content.flex_context.space-between | ||
- css.properties.justify-content.flex_context.stretch | ||
- css.properties.order |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 and the below are quite a lot later than https://caniuse.com/flexbox. What are the newest part of the feature that cause the whole feature to look new here?
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.
The key thing affecting the date is Firefox 81's full support for
flex-direction
. Before that it has partial support. That feature alone determines the baseline date (without it, it would be determined by Edge 80's release date).For the individual browsers' differences with caniuse, let's look at each in turn. In general, I ignored prefixed-only and partial implementations, but this has a smaller effect than you might guess.
For Chrome, most of the features lined up with caniuse's 29+. The exceptions were:
css.properties.align-content.flex_context.stretch
,css.properties.align-self.flex_context.stretch
,css.properties.justify-content.flex_context.stretch
css.properties.align-self.flex_context
For Edge, both the
stretch
andbaseline
values push it above caniuse's Edge 12 to Edge 79. I also treated≤79
as Edge 79, though I don't think it would make a difference to the sum of the features.For Firefox, most of the features were roughly in line with caniuse, though caniuse says that before Firefox 28 is partial, while BCD uses notes with no partial flag. Beyond Firefox 28, the divergences from caniuse are:
stretch
values, againcss.properties.flex-direction
stops being a partial implementation. This one is messy, with a partial and notes.For Safari, caniuse shows a green indicator for prefixed implementations starting at Safari 7. Waiting for the unprefixed versions pushes most of the features to Safari 9; I think that's the only thing we can do before sorting out ways to annotate results.
Taking this all together:
flex-direction
is wrong or misleading, then corrections might lead to the overall baseline date back to Edge 80's release, about 8 months earlier.stretch
is a separate group. If it were moved to another group (and nothing else changed), thenflexbox
would show an earlier version for Chrome (36), but wouldn't otherwise alter the results.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.
Alright, so clearly there's a lot of nuance here, a cluster of granular CSS properties and values, many of which come with a complex history of partial support, notes, etc.
I'm happy with the explanation of the versions you've given, and the only issue I can foresee is if any consumer uses the version numbers and displays them to users. There are multiple ways we can address that, but for now I think we should just proceed with the manually determined versions you have here.