-
Notifications
You must be signed in to change notification settings - Fork 199
Add sizing features #1872
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
Merged
Merged
Add sizing features #1872
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
bf16ee5
Add box-sizing
jamesnw 3ab3d34
Add missing aspect-ratio.auto
jamesnw 3a19f52
Add width and height
jamesnw 8db94f5
Merge branch 'main' of github.com:web-platform-dx/web-features into s…
jamesnw 6a45eef
Add min-max-width-height
jamesnw 7c8e1ac
Format
jamesnw eeddc37
Merge branch 'main' of github.com:web-platform-dx/web-features into s…
jamesnw b8716c3
Add fit-content, fit-content-function, min-max-content
jamesnw 175b097
Reviews
jamesnw 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 hidden or 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
This file contains hidden or 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
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| name: box-sizing | ||
| description: The `box-sizing` CSS property sets whether an element's width and height are calculated based on the `content-box`, which does not count the size of borders or padding, or `border-box`, which does count them. | ||
| spec: https://drafts.csswg.org/css-sizing-3/#propdef-box-sizing | ||
| caniuse: css3-boxsizing | ||
| group: layout | ||
| compat_features: | ||
| - css.properties.box-sizing | ||
| - css.properties.box-sizing.border-box | ||
| - css.properties.box-sizing.content-box |
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| # Generated from: box-sizing.yml | ||
| # Do not edit this file by hand. Edit the source file instead! | ||
|
|
||
| status: | ||
| baseline: high | ||
| baseline_low_date: 2015-07-29 | ||
| baseline_high_date: 2018-01-29 | ||
| support: | ||
| chrome: "10" | ||
| chrome_android: "18" | ||
| edge: "12" | ||
| firefox: "29" | ||
| firefox_android: "29" | ||
| safari: "5.1" | ||
| safari_ios: "6" | ||
| compat_features: | ||
| - css.properties.box-sizing | ||
| - css.properties.box-sizing.border-box | ||
| - css.properties.box-sizing.content-box |
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| name: fit-content() | ||
| description: The `fit-content()` CSS function, used outside of a grid layout property, clamps a length between `min-content` and `max-content`. | ||
| spec: https://drafts.csswg.org/css-sizing-3/#funcdef-width-fit-content | ||
| group: layout | ||
| compat_features: | ||
| - css.properties.block-size.fit-content_function | ||
| - css.properties.height.fit-content_function | ||
| - css.properties.inline-size.fit-content_function | ||
| - css.properties.max-block-size.fit-content_function | ||
| - css.properties.max-height.fit-content_function | ||
| - css.properties.max-inline-size.fit-content_function | ||
| - css.properties.max-width.fit-content_function | ||
| - css.properties.min-block-size.fit-content_function | ||
| - css.properties.min-height.fit-content_function | ||
| - css.properties.min-inline-size.fit-content_function | ||
| - css.properties.min-width.fit-content_function | ||
| - css.properties.width.fit-content_function |
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| # Generated from: fit-content-function.yml | ||
| # Do not edit this file by hand. Edit the source file instead! | ||
|
|
||
| status: | ||
| baseline: false | ||
| support: {} | ||
| compat_features: | ||
| - css.properties.block-size.fit-content_function | ||
| - css.properties.height.fit-content_function | ||
| - css.properties.inline-size.fit-content_function | ||
| - css.properties.max-block-size.fit-content_function | ||
| - css.properties.max-height.fit-content_function | ||
| - css.properties.max-inline-size.fit-content_function | ||
| - css.properties.max-width.fit-content_function | ||
| - css.properties.min-block-size.fit-content_function | ||
| - css.properties.min-height.fit-content_function | ||
| - css.properties.min-inline-size.fit-content_function | ||
| - css.properties.min-width.fit-content_function | ||
| - css.properties.width.fit-content_function |
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| name: fit-content | ||
| description: The `fit-content` CSS keyword expands a box as needed to fit its contents until the maximum size is reached. | ||
| spec: https://drafts.csswg.org/css-sizing-4/#valdef-width-fit-content | ||
| group: layout | ||
| compat_features: | ||
| - css.properties.height.fit-content | ||
| - css.properties.max-height.fit-content | ||
| - css.properties.max-width.fit-content | ||
| - css.properties.min-height.fit-content | ||
| - css.properties.min-width.fit-content | ||
| - css.properties.width.fit-content |
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| # Generated from: fit-content.yml | ||
| # Do not edit this file by hand. Edit the source file instead! | ||
|
|
||
| status: | ||
| baseline: high | ||
| baseline_low_date: 2021-11-02 | ||
| baseline_high_date: 2024-05-02 | ||
| support: | ||
| chrome: "46" | ||
| chrome_android: "46" | ||
| edge: "79" | ||
| firefox: "94" | ||
| firefox_android: "94" | ||
| safari: "11" | ||
| safari_ios: "11" | ||
| compat_features: | ||
| - css.properties.height.fit-content | ||
| - css.properties.max-height.fit-content | ||
| - css.properties.max-width.fit-content | ||
| - css.properties.min-height.fit-content | ||
| - css.properties.min-width.fit-content | ||
| - css.properties.width.fit-content |
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| name: min-content and max-content | ||
| description: The `min-content` and `max-content` CSS keywords represent the smallest and largest intrinsic sizes of an element. | ||
| spec: | ||
| - https://drafts.csswg.org/css-sizing-3/#valdef-width-max-content | ||
| - https://drafts.csswg.org/css-sizing-3/#valdef-width-min-content | ||
| group: layout | ||
| compat_features: | ||
| - css.properties.height.max-content | ||
| - css.properties.max-height.max-content | ||
| - css.properties.max-width.max-content | ||
| - css.properties.min-height.max-content | ||
| - css.properties.min-width.max-content | ||
| - css.properties.width.max-content | ||
| - css.properties.height.min-content | ||
| - css.properties.max-height.min-content | ||
| - css.properties.max-width.min-content | ||
| - css.properties.min-height.min-content | ||
| - css.properties.min-width.min-content | ||
| - css.properties.width.min-content |
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| # Generated from: min-max-content.yml | ||
| # Do not edit this file by hand. Edit the source file instead! | ||
|
|
||
| status: | ||
| baseline: high | ||
| baseline_low_date: 2020-01-15 | ||
| baseline_high_date: 2022-07-15 | ||
| support: | ||
| chrome: "46" | ||
| chrome_android: "46" | ||
| edge: "79" | ||
| firefox: "66" | ||
| firefox_android: "66" | ||
| safari: "11" | ||
| safari_ios: "11" | ||
| compat_features: | ||
| - css.properties.height.max-content | ||
| - css.properties.height.min-content | ||
| - css.properties.max-height.max-content | ||
| - css.properties.max-height.min-content | ||
| - css.properties.max-width.max-content | ||
| - css.properties.max-width.min-content | ||
| - css.properties.min-height.max-content | ||
| - css.properties.min-height.min-content | ||
| - css.properties.min-width.max-content | ||
| - css.properties.min-width.min-content | ||
| - css.properties.width.max-content | ||
| - css.properties.width.min-content |
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| name: Min and max width and height | ||
| description: The `min-width`, `min-height`, `max-width`, and `max-height` CSS properties set the minimum and maximum size of an element. | ||
| spec: | ||
| - https://drafts.csswg.org/css-sizing-3/#min-size-properties | ||
| - https://drafts.csswg.org/css-sizing-3/#max-size-properties | ||
| caniuse: minmaxwh | ||
| status: | ||
| compute_from: css.properties.max-height.none | ||
| compat_features: | ||
| - css.properties.max-height | ||
| - css.properties.max-height.none | ||
| - css.properties.max-width | ||
| - css.properties.max-width.none | ||
| - css.properties.min-height | ||
| - css.properties.min-height.auto | ||
| - css.properties.min-width | ||
| - css.properties.min-width.auto |
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,92 @@ | ||
| # Generated from: min-max-width-height.yml | ||
| # Do not edit this file by hand. Edit the source file instead! | ||
|
|
||
| status: | ||
| baseline: high | ||
| baseline_low_date: 2020-01-15 | ||
| baseline_high_date: 2022-07-15 | ||
| support: | ||
| chrome: "18" | ||
| chrome_android: "18" | ||
| edge: "79" | ||
| firefox: "1" | ||
| firefox_android: "4" | ||
| safari: "1.3" | ||
| safari_ios: "1" | ||
| compat_features: | ||
| # baseline: high | ||
| # baseline_low_date: 2015-07-29 | ||
| # baseline_high_date: 2018-01-29 | ||
| # support: | ||
| # chrome: "1" | ||
| # chrome_android: "18" | ||
| # edge: "12" | ||
| # firefox: "1" | ||
| # firefox_android: "4" | ||
| # safari: "1" | ||
| # safari_ios: "1" | ||
| - css.properties.max-width | ||
| - css.properties.max-width.none | ||
| - css.properties.min-width | ||
|
|
||
| # baseline: high | ||
| # baseline_low_date: 2015-07-29 | ||
| # baseline_high_date: 2018-01-29 | ||
| # support: | ||
| # chrome: "1" | ||
| # chrome_android: "18" | ||
| # edge: "12" | ||
| # firefox: "3" | ||
| # firefox_android: "4" | ||
| # safari: "1.3" | ||
| # safari_ios: "1" | ||
| - css.properties.min-height | ||
|
|
||
| # baseline: high | ||
| # baseline_low_date: 2015-07-29 | ||
| # baseline_high_date: 2018-01-29 | ||
| # support: | ||
| # chrome: "18" | ||
| # chrome_android: "18" | ||
| # edge: "12" | ||
| # firefox: "1" | ||
| # firefox_android: "4" | ||
| # safari: "1.3" | ||
| # safari_ios: "1" | ||
| - css.properties.max-height | ||
|
|
||
| # baseline: high | ||
| # baseline_low_date: 2015-07-29 | ||
| # baseline_high_date: 2018-01-29 | ||
| # support: | ||
| # chrome: "21" | ||
| # chrome_android: "25" | ||
| # edge: "12" | ||
| # firefox: "34" | ||
| # firefox_android: "34" | ||
| # safari: "7" | ||
| # safari_ios: "7" | ||
| - css.properties.min-width.auto | ||
|
|
||
| # ⬇️ Same status as overall feature ⬇️ | ||
| # baseline: high | ||
| # baseline_low_date: 2020-01-15 | ||
| # baseline_high_date: 2022-07-15 | ||
| # support: | ||
| # chrome: "18" | ||
| # chrome_android: "18" | ||
| # edge: "79" | ||
| # firefox: "1" | ||
| # firefox_android: "4" | ||
| # safari: "1.3" | ||
| # safari_ios: "1" | ||
| - css.properties.max-height.none | ||
|
|
||
| # baseline: false | ||
| # support: | ||
| # chrome: "21" | ||
| # chrome_android: "25" | ||
| # edge: "79" | ||
| # safari: "7" | ||
| # safari_ios: "7" | ||
| - css.properties.min-height.auto | ||
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| name: Width and height | ||
| description: The `width` and `height` CSS properties set the preferred physical size of an element. | ||
| spec: https://drafts.csswg.org/css-sizing-3/#preferred-size-properties | ||
| group: layout | ||
| # Ignore width.is_animatable | ||
| status: | ||
| compute_from: | ||
| - css.properties.height | ||
| - css.properties.width | ||
| compat_features: | ||
| - css.properties.height | ||
| - css.properties.height.auto | ||
| - css.properties.width | ||
| - css.properties.width.is_animatable | ||
| - css.properties.width.auto |
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,45 @@ | ||
| # Generated from: width-height.yml | ||
| # Do not edit this file by hand. Edit the source file instead! | ||
|
|
||
| status: | ||
| baseline: high | ||
| baseline_low_date: 2015-07-29 | ||
| baseline_high_date: 2018-01-29 | ||
| support: | ||
| chrome: "1" | ||
| chrome_android: "18" | ||
| edge: "12" | ||
| firefox: "1" | ||
| firefox_android: "4" | ||
| safari: "1" | ||
| safari_ios: "1" | ||
| compat_features: | ||
| # ⬇️ Same status as overall feature ⬇️ | ||
| # baseline: high | ||
| # baseline_low_date: 2015-07-29 | ||
| # baseline_high_date: 2018-01-29 | ||
| # support: | ||
| # chrome: "1" | ||
| # chrome_android: "18" | ||
| # edge: "12" | ||
| # firefox: "1" | ||
| # firefox_android: "4" | ||
| # safari: "1" | ||
| # safari_ios: "1" | ||
| - css.properties.height | ||
| - css.properties.height.auto | ||
| - css.properties.width | ||
| - css.properties.width.auto | ||
|
|
||
| # baseline: high | ||
| # baseline_low_date: 2015-07-29 | ||
| # baseline_high_date: 2018-01-29 | ||
| # support: | ||
| # chrome: "26" | ||
| # chrome_android: "26" | ||
| # edge: "12" | ||
| # firefox: "16" | ||
| # firefox_android: "16" | ||
| # safari: "7" | ||
| # safari_ios: "7" | ||
| - css.properties.width.is_animatable |
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.
I sent mdn/browser-compat-data#24601 to fix these