Skip to content
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 display CSS property and common declarations #1967

Merged
merged 6 commits into from
Oct 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions features/display-flow-root.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
name: "display: flow-root"
description: "The `display: flow-root` CSS declaration sets an element as the root element of a new flow layout for its children, preventing margin collapse with sibling elements."
spec: https://drafts.csswg.org/css-display-3/#inner-model
caniuse: flow-root
group: css
compat_features:
- css.properties.display.flow-root
17 changes: 17 additions & 0 deletions features/display-flow-root.yml.dist
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Generated from: display-flow-root.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: "58"
chrome_android: "58"
edge: "79"
firefox: "53"
firefox_android: "53"
safari: "13"
safari_ios: "13"
compat_features:
- css.properties.display.flow-root
11 changes: 11 additions & 0 deletions features/display-list-item.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: "display: list-item"
description: "The `display: list-item` CSS declaration renders an element with the box layout of a `<li>` HTML element."
spec: https://drafts.csswg.org/css-display-3/#list-items
group:
- css
- lists
status:
compute_from: css.properties.display.list-item
compat_features:
- css.properties.display.list-item
- css.properties.display.list-item.legend-support
38 changes: 38 additions & 0 deletions features/display-list-item.yml.dist
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# Generated from: display-list-item.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.display.list-item

# baseline: false
# support:
# chrome: "71"
# chrome_android: "71"
# edge: "79"
# firefox: "64"
# firefox_android: "64"
- css.properties.display.list-item.legend-support
12 changes: 12 additions & 0 deletions features/display-ruby.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: "display: ruby"
description: "The `display: ruby` CSS declaration renders an element with the box layout of a `<ruby>` HTML element. Child elements may use equivalents to `<ruby>` internal elements such as `display: ruby-base` for `<rb>`."
spec: https://drafts.csswg.org/css-display-3/#layout-specific-display
group:
- css
- ruby
compat_features:
- css.properties.display.ruby
- css.properties.display.ruby-base
- css.properties.display.ruby-base-container
- css.properties.display.ruby-text
- css.properties.display.ruby-text-container
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Documenting for posterity-

The HTML spec marks <ruby-base> and <ruby-text-container> as obsolete so I was looking into whether the CSS values should be deprecated (first in the CSS spec, then in BCD).

However, there is an open issue to remove them from the list of obselete features. At some point this may see more implementation and need updates, but this is good as is.

26 changes: 26 additions & 0 deletions features/display-ruby.yml.dist
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Generated from: display-ruby.yml
# Do not edit this file by hand. Edit the source file instead!

status:
baseline: false
support:
firefox: "38"
firefox_android: "38"
compat_features:
# baseline: false
# support:
# chrome: "121"
# chrome_android: "121"
# firefox: "38"
# firefox_android: "38"
- css.properties.display.ruby
- css.properties.display.ruby-text

# ⬇️ Same status as overall feature ⬇️
# baseline: false
# support:
# firefox: "38"
# firefox_android: "38"
- css.properties.display.ruby-base
- css.properties.display.ruby-base-container
- css.properties.display.ruby-text-container
16 changes: 16 additions & 0 deletions features/display-table.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: "display: table"
description: "The `display: table` CSS declaration renders an element with the box layout of a `<table>` HTML element. Child elements may use equivalents to `<table>` internal elements such as `display: table-row` for `<tr>`."
spec: https://drafts.csswg.org/css-display-3/#layout-specific-display
caniuse: css-table
group: css
compat_features:
- css.properties.display.table
- css.properties.display.table-caption
- css.properties.display.table-cell
- css.properties.display.table-column
- css.properties.display.table-column-group
- css.properties.display.table-footer-group
- css.properties.display.table-header-group
- css.properties.display.table-row
- css.properties.display.table-row-group
- css.properties.display.inline-table
62 changes: 62 additions & 0 deletions features/display-table.yml.dist
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
# Generated from: display-table.yml
# Do not edit this file by hand. Edit the source file instead!

status:
baseline: high
baseline_low_date: 2020-07-28
baseline_high_date: 2023-01-28
support:
chrome: ≤80
chrome_android: "80"
edge: "80"
firefox: ≤72
firefox_android: "79"
safari: ≤13.1
safari_ios: ≤13.4
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.display.table
- css.properties.display.table-cell
- css.properties.display.table-column
- css.properties.display.table-column-group
- css.properties.display.table-footer-group
- css.properties.display.table-header-group
- css.properties.display.table-row
- css.properties.display.table-row-group

# 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"
# safari_ios: "1"
- css.properties.display.inline-table

# ⬇️ Same status as overall feature ⬇️
# baseline: high
# baseline_low_date: 2020-07-28
# baseline_high_date: 2023-01-28
# support:
# chrome: ≤80
# chrome_android: "80"
# edge: "80"
# firefox: ≤72
# firefox_android: "79"
# safari: ≤13.1
# safari_ios: ≤13.4
- css.properties.display.table-caption
13 changes: 13 additions & 0 deletions features/display.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: Display
description: The `display` CSS property sets the display behavior of an element's box within its layout and sets the layout behavior for its child elements.
spec: https://drafts.csswg.org/css-display-3/#the-display-properties
group: css
status:
compute_from: css.properties.display
compat_features:
- css.properties.display
- css.properties.display.none
ddbeck marked this conversation as resolved.
Show resolved Hide resolved
- css.properties.display.none.option_is_hidden
- css.properties.display.block
- css.properties.display.inline
- css.properties.display.inline-block
42 changes: 42 additions & 0 deletions features/display.yml.dist
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# Generated from: display.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.display
- css.properties.display.block
- css.properties.display.inline
- css.properties.display.inline-block
- css.properties.display.none

# baseline: false
# support:
# chrome: "1"
# chrome_android: "18"
# edge: "79"
# firefox: "1"
# firefox_android: "4"
- css.properties.display.none.option_is_hidden