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 additional contain features and keys #2252

Merged
merged 16 commits into from
Nov 27, 2024
Merged
Show file tree
Hide file tree
Changes from 12 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
1 change: 0 additions & 1 deletion features/contain-size.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,4 @@ description: "The `contain: size` CSS declaration sets an element's dimensions e
spec: https://drafts.csswg.org/css-contain-2/#containment-size
group: containment
compat_features:
- css.properties.contain
- css.properties.contain.size
1 change: 0 additions & 1 deletion features/contain-size.yml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,4 @@ status:
safari: "15.4"
safari_ios: "15.4"
compat_features:
- css.properties.contain
- css.properties.contain.size
10 changes: 10 additions & 0 deletions features/contain.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
name: contain
description: "The `contain` CSS property sets limits to the scope of styles, layout, and paint rendering for speed and efficiency. The `none` keyword value disables containment, `strict` is equivalent to `contain: size layout style paint`, and `content` is equivalent to `contain: layout style paint`."
spec: https://drafts.csswg.org/css-contain-2/#contain-property
group: containment
caniuse: css-containment
compat_features:
- css.properties.contain
- css.properties.contain.content
- css.properties.contain.none
- css.properties.contain.strict
20 changes: 20 additions & 0 deletions features/contain.yml.dist
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Generated from: contain.yml
# Do not edit this file by hand. Edit the source file instead!

status:
baseline: high
baseline_low_date: 2022-03-14
baseline_high_date: 2024-09-14
support:
chrome: "52"
chrome_android: "52"
edge: "79"
firefox: "69"
firefox_android: "79"
safari: "15.4"
safari_ios: "15.4"
compat_features:
- css.properties.contain
- css.properties.contain.content
- css.properties.contain.none
- css.properties.contain.strict
9 changes: 9 additions & 0 deletions features/content-visibility.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,12 @@ description: The `content-visibility` CSS property delays rendering an element,
spec: https://drafts.csswg.org/css-contain-2/#content-visibility
group: css
caniuse: css-content-visibility
compat_features:
- api.ContentVisibilityAutoStateChangeEvent
- api.ContentVisibilityAutoStateChangeEvent.ContentVisibilityAutoStateChangeEvent
- api.ContentVisibilityAutoStateChangeEvent.skipped
- api.Element.contentvisibilityautostatechange_event
- css.properties.content-visibility
- css.properties.content-visibility.auto
- css.properties.content-visibility.hidden
- css.properties.content-visibility.visible
23 changes: 16 additions & 7 deletions features/content-visibility.yml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,13 @@
# Do not edit this file by hand. Edit the source file instead!

status:
baseline: low
baseline_low_date: 2024-09-16
baseline: false
Copy link
Collaborator

Choose a reason for hiding this comment

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

Since we're regressing the status, would you add a comment to the authored yaml file with a note as in #1973?

Copy link
Collaborator

Choose a reason for hiding this comment

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

This should no longer be a regression with mdn/browser-compat-data#25186 in 5.6.19.

Copy link
Collaborator

Choose a reason for hiding this comment

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

There are now no status changes here.

support:
chrome: "108"
chrome_android: "108"
edge: "108"
firefox: "125"
firefox_android: "125"
safari: "18"
safari_ios: "18"
firefox: "130"
firefox_android: "130"
compat_features:
# baseline: low
# baseline_low_date: 2024-09-16
Expand All @@ -24,8 +21,10 @@ compat_features:
# safari: "18"
# safari_ios: "18"
- css.properties.content-visibility
- css.properties.content-visibility.auto
- css.properties.content-visibility.hidden
- css.properties.content-visibility.visible

# ⬇️ Same status as overall feature ⬇️
# baseline: low
# baseline_low_date: 2024-09-16
# support:
Expand All @@ -39,3 +38,13 @@ compat_features:
- api.ContentVisibilityAutoStateChangeEvent
- api.ContentVisibilityAutoStateChangeEvent.ContentVisibilityAutoStateChangeEvent
- api.ContentVisibilityAutoStateChangeEvent.skipped

# ⬇️ Same status as overall feature ⬇️
# baseline: false
# support:
# chrome: "108"
# chrome_android: "108"
# edge: "108"
# firefox: "130"
# firefox_android: "130"
- api.Element.contentvisibilityautostatechange_event
jamesnw marked this conversation as resolved.
Show resolved Hide resolved