-
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
Logical properties #1736
Merged
Merged
Logical properties #1736
Changes from 7 commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
1b6fe87
Add logical properties
jamesnw 99f5fb6
Update desc
jamesnw ae4e330
Add auto keywords
jamesnw 1411653
Merge branch 'main' of github.com:web-platform-dx/web-features into l…
jamesnw a227f8d
Accept reviews
jamesnw 9025790
Add missing keys
jamesnw 8dfbaab
Add more missing keys
jamesnw 197b321
Merge branch 'main' of github.com:web-platform-dx/web-features into l…
jamesnw 727cac1
Review
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 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,91 @@ | ||
name: Logical properties | ||
description: CSS logical properties control borders, size, margin and padding with directions and dimensions relative to the writing mode. For example, in a left to right, top to bottom writing mode, `block-end` refers to the bottom. Also known as flow relative. | ||
spec: https://drafts.csswg.org/css-logical-1/ | ||
caniuse: css-logical-props | ||
group: css | ||
# Picked to match Caniuse. Clear and float came 2 years later, but don't warrant separate features. | ||
status: | ||
compute_from: css.properties.border-end-end-radius | ||
compat_features: | ||
- css.properties.block-size | ||
- css.properties.block-size.fit-content | ||
- css.properties.block-size.max-content | ||
- css.properties.block-size.min-content | ||
- css.properties.border-block | ||
- css.properties.border-block-color | ||
- css.properties.border-block-end | ||
- css.properties.border-block-end-color | ||
- css.properties.border-block-end-style | ||
- css.properties.border-block-end-width | ||
- css.properties.border-block-start | ||
- css.properties.border-block-start-color | ||
- css.properties.border-block-start-style | ||
- css.properties.border-block-start-width | ||
- css.properties.border-block-style | ||
- css.properties.border-block-width | ||
- css.properties.border-end-end-radius | ||
- css.properties.border-end-start-radius | ||
- css.properties.border-inline | ||
- css.properties.border-inline-color | ||
- css.properties.border-inline-end | ||
- css.properties.border-inline-end-color | ||
- css.properties.border-inline-end-style | ||
- css.properties.border-inline-end-width | ||
- css.properties.border-inline-start | ||
- css.properties.border-inline-start-color | ||
- css.properties.border-inline-start-style | ||
- css.properties.border-inline-start-width | ||
- css.properties.border-inline-style | ||
- css.properties.border-inline-width | ||
- css.properties.border-start-end-radius | ||
- css.properties.border-start-start-radius | ||
- css.properties.clear.inline-end | ||
- css.properties.clear.inline-start | ||
- css.properties.float.inline-end | ||
- css.properties.float.inline-start | ||
- css.properties.inline-size | ||
- css.properties.inline-size.fit-content | ||
- css.properties.inline-size.max-content | ||
- css.properties.inline-size.min-content | ||
- css.properties.inset | ||
- css.properties.inset.auto | ||
- css.properties.inset-block | ||
- css.properties.inset-block.auto | ||
- css.properties.inset-block-end | ||
- css.properties.inset-block-end.auto | ||
- css.properties.inset-block-start | ||
- css.properties.inset-block-start.auto | ||
- css.properties.inset-inline | ||
- css.properties.inset-inline.auto | ||
- css.properties.inset-inline-end | ||
- css.properties.inset-inline-end.auto | ||
- css.properties.inset-inline-start | ||
- css.properties.inset-inline-start.auto | ||
- css.properties.margin-block | ||
- css.properties.margin-block-end | ||
- css.properties.margin-block-start | ||
- css.properties.margin-inline | ||
- css.properties.margin-inline-end | ||
- css.properties.margin-inline-start | ||
- css.properties.max-block-size | ||
- css.properties.max-block-size.fit-content | ||
- css.properties.max-block-size.max-content | ||
- css.properties.max-block-size.min-content | ||
- css.properties.max-inline-size | ||
- css.properties.max-inline-size.fit-content | ||
- css.properties.max-inline-size.max-content | ||
- css.properties.max-inline-size.min-content | ||
- css.properties.min-block-size | ||
- css.properties.min-block-size.fit-content | ||
- css.properties.min-block-size.max-content | ||
- css.properties.min-block-size.min-content | ||
- css.properties.min-inline-size | ||
- css.properties.min-inline-size.fit-content | ||
- css.properties.min-inline-size.max-content | ||
- css.properties.min-inline-size.min-content | ||
- css.properties.padding-block | ||
- css.properties.padding-block-end | ||
- css.properties.padding-block-start | ||
- css.properties.padding-inline | ||
- css.properties.padding-inline-end | ||
- css.properties.padding-inline-start |
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 |
---|---|---|
@@ -0,0 +1,205 @@ | ||
# Generated from: logical-properties.yml | ||
# Do not edit this file by hand. Edit the source file instead! | ||
|
||
status: | ||
baseline: high | ||
baseline_low_date: 2021-09-20 | ||
baseline_high_date: 2024-03-20 | ||
support: | ||
chrome: "89" | ||
chrome_android: "89" | ||
edge: "89" | ||
firefox: "66" | ||
firefox_android: "66" | ||
safari: "15" | ||
safari_ios: "15" | ||
compat_features: | ||
# baseline: high | ||
# baseline_low_date: 2020-01-15 | ||
# baseline_high_date: 2022-07-15 | ||
# support: | ||
# chrome: "57" | ||
# chrome_android: "57" | ||
# edge: "79" | ||
# firefox: "41" | ||
# firefox_android: "41" | ||
# safari: "12.1" | ||
# safari_ios: "12.2" | ||
- css.properties.block-size | ||
- css.properties.inline-size | ||
- css.properties.max-block-size | ||
- css.properties.max-inline-size | ||
- css.properties.min-block-size | ||
- css.properties.min-inline-size | ||
|
||
# baseline: high | ||
# baseline_low_date: 2020-01-15 | ||
# baseline_high_date: 2022-07-15 | ||
# support: | ||
# chrome: "57" | ||
# chrome_android: "57" | ||
# edge: "79" | ||
# firefox: "66" | ||
# firefox_android: "66" | ||
# safari: "12.1" | ||
# safari_ios: "12.2" | ||
- css.properties.block-size.max-content | ||
- css.properties.block-size.min-content | ||
- css.properties.inline-size.max-content | ||
- css.properties.inline-size.min-content | ||
- css.properties.max-block-size.max-content | ||
- css.properties.max-block-size.min-content | ||
- css.properties.max-inline-size.max-content | ||
- css.properties.max-inline-size.min-content | ||
- css.properties.min-block-size.max-content | ||
- css.properties.min-block-size.min-content | ||
- css.properties.min-inline-size.max-content | ||
- css.properties.min-inline-size.min-content | ||
|
||
# baseline: high | ||
# baseline_low_date: 2020-01-15 | ||
# baseline_high_date: 2022-07-15 | ||
# support: | ||
# chrome: "69" | ||
# chrome_android: "69" | ||
# edge: "79" | ||
# firefox: "41" | ||
# firefox_android: "41" | ||
# safari: "12.1" | ||
# safari_ios: "12.2" | ||
- css.properties.border-block-end | ||
- css.properties.border-block-end-color | ||
- css.properties.border-block-end-style | ||
- css.properties.border-block-end-width | ||
- css.properties.border-block-start | ||
- css.properties.border-block-start-color | ||
- css.properties.border-block-start-style | ||
- css.properties.border-block-start-width | ||
- css.properties.border-inline-end | ||
- css.properties.border-inline-end-color | ||
- css.properties.border-inline-end-style | ||
- css.properties.border-inline-end-width | ||
- css.properties.border-inline-start | ||
- css.properties.border-inline-start-color | ||
- css.properties.border-inline-start-style | ||
- css.properties.border-inline-start-width | ||
- css.properties.margin-block-end | ||
- css.properties.margin-block-start | ||
- css.properties.margin-inline-end | ||
- css.properties.margin-inline-start | ||
- css.properties.padding-block-end | ||
- css.properties.padding-block-start | ||
- css.properties.padding-inline-end | ||
- css.properties.padding-inline-start | ||
|
||
# baseline: high | ||
# baseline_low_date: 2021-04-26 | ||
# baseline_high_date: 2023-10-26 | ||
# support: | ||
# chrome: "87" | ||
# chrome_android: "87" | ||
# edge: "87" | ||
# firefox: "63" | ||
# firefox_android: "63" | ||
# safari: "14.1" | ||
# safari_ios: "14.5" | ||
- css.properties.inset-block | ||
- css.properties.inset-block-end | ||
- css.properties.inset-block-start | ||
- css.properties.inset-inline | ||
- css.properties.inset-inline-end | ||
- css.properties.inset-inline-start | ||
|
||
# baseline: high | ||
# baseline_low_date: 2021-04-26 | ||
# baseline_high_date: 2023-10-26 | ||
# support: | ||
# chrome: "87" | ||
# chrome_android: "87" | ||
# edge: "87" | ||
# firefox: "66" | ||
# firefox_android: "66" | ||
# safari: "14.1" | ||
# safari_ios: "14.5" | ||
- css.properties.border-block | ||
- css.properties.border-block-color | ||
- css.properties.border-block-style | ||
- css.properties.border-block-width | ||
- css.properties.border-inline | ||
- css.properties.border-inline-color | ||
- css.properties.border-inline-style | ||
- css.properties.border-inline-width | ||
- css.properties.inset | ||
- css.properties.margin-block | ||
- css.properties.margin-inline | ||
- css.properties.padding-block | ||
- css.properties.padding-inline | ||
|
||
# baseline: high | ||
# baseline_low_date: 2021-04-26 | ||
# baseline_high_date: 2023-10-26 | ||
# support: | ||
# chrome: "87" | ||
# chrome_android: "87" | ||
# edge: "87" | ||
# firefox: ≤72 | ||
# firefox_android: "79" | ||
# safari: "14.1" | ||
# safari_ios: "14.5" | ||
- css.properties.inset-block-end.auto | ||
- css.properties.inset-block-start.auto | ||
- css.properties.inset-block.auto | ||
- css.properties.inset-inline-end.auto | ||
- css.properties.inset-inline-start.auto | ||
- css.properties.inset-inline.auto | ||
- css.properties.inset.auto | ||
|
||
# ⬇️ Same status as overall feature ⬇️ | ||
# baseline: high | ||
# baseline_low_date: 2021-09-20 | ||
# baseline_high_date: 2024-03-20 | ||
# support: | ||
# chrome: "89" | ||
# chrome_android: "89" | ||
# edge: "89" | ||
# firefox: "66" | ||
# firefox_android: "66" | ||
# safari: "15" | ||
# safari_ios: "15" | ||
- css.properties.border-end-end-radius | ||
- css.properties.border-end-start-radius | ||
- css.properties.border-start-end-radius | ||
- css.properties.border-start-start-radius | ||
|
||
# baseline: high | ||
# baseline_low_date: 2021-11-02 | ||
# baseline_high_date: 2024-05-02 | ||
# support: | ||
# chrome: "57" | ||
# chrome_android: "57" | ||
# edge: "79" | ||
# firefox: "94" | ||
# firefox_android: "94" | ||
# safari: "12.1" | ||
# safari_ios: "12.2" | ||
- css.properties.block-size.fit-content | ||
- css.properties.inline-size.fit-content | ||
- css.properties.max-block-size.fit-content | ||
- css.properties.max-inline-size.fit-content | ||
- css.properties.min-block-size.fit-content | ||
- css.properties.min-inline-size.fit-content | ||
|
||
# baseline: low | ||
# baseline_low_date: 2023-10-13 | ||
# support: | ||
# chrome: "118" | ||
# chrome_android: "118" | ||
# edge: "118" | ||
# firefox: "55" | ||
# firefox_android: "55" | ||
# safari: "15" | ||
# safari_ios: "15" | ||
- css.properties.clear.inline-end | ||
- css.properties.clear.inline-start | ||
- css.properties.float.inline-end | ||
- css.properties.float.inline-start |
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.