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

Add features for @import and @supports #1353

Merged
merged 6 commits into from
Aug 6, 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
10 changes: 10 additions & 0 deletions features/import.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
name: "@import"
description: The `@import` CSS at-rule loads styles from another stylesheet.
spec: https://drafts.csswg.org/css-cascade-5/#at-import
group: css
compat_features:
- css.at-rules.import
- api.CSSImportRule
- api.CSSImportRule.href
- api.CSSImportRule.media
- api.CSSImportRule.styleSheet
21 changes: 21 additions & 0 deletions features/import.yml.dist
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Generated from: import.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:
- api.CSSImportRule
- api.CSSImportRule.href
- api.CSSImportRule.media
- api.CSSImportRule.styleSheet
- css.at-rules.import
16 changes: 16 additions & 0 deletions features/supports.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: "@supports"
description: The `@supports` at-rule applies styles based on a browser's support for CSS features, such as a CSS property and value. Also known as feature queries.
spec: https://drafts.csswg.org/css-conditional-3/#at-supports
caniuse: css-featurequeries
group: css
status:
compute_from: css.at-rules.supports
compat_features:
# TODO: see discussion on https://github.com/web-platform-dx/web-features/pull/1353#discussion_r1673871428
# - api.CSSImportRule.supportsText
- api.CSSSupportsRule
- css.at-rules.import.supports
- css.at-rules.supports
- css.at-rules.supports.font-format
- css.at-rules.supports.font-tech
- css.at-rules.supports.selector
65 changes: 65 additions & 0 deletions features/supports.yml.dist
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
# Generated from: supports.yml
# Do not edit this file by hand. Edit the source file instead!

status:
baseline: high
baseline_low_date: 2015-09-30
baseline_high_date: 2018-03-30
support:
chrome: "28"
chrome_android: "28"
edge: "12"
firefox: "22"
firefox_android: "22"
safari: "9"
safari_ios: "9"
compat_features:
# ⬇️ Same status as overall feature ⬇️
# baseline: high
# baseline_low_date: 2015-09-30
# baseline_high_date: 2018-03-30
# support:
# chrome: "28"
# chrome_android: "28"
# edge: "12"
# firefox: "22"
# firefox_android: "22"
# safari: "9"
# safari_ios: "9"
- api.CSSSupportsRule
- css.at-rules.supports

# baseline: high
# baseline_low_date: 2021-04-26
# baseline_high_date: 2023-10-26
# support:
# chrome: "83"
# chrome_android: "83"
# edge: "83"
# firefox: "69"
# firefox_android: "79"
# safari: "14.1"
# safari_ios: "14.5"
- css.at-rules.supports.selector

# baseline: low
# baseline_low_date: 2023-09-18
# support:
# chrome: "108"
# chrome_android: "108"
# edge: "108"
# firefox: "106"
# firefox_android: "106"
# safari: "17"
# safari_ios: "17"
- css.at-rules.supports.font-format
- css.at-rules.supports.font-tech

# baseline: false
# support:
# chrome: "122"
# chrome_android: "122"
# edge: "122"
# firefox: "115"
# firefox_android: "115"
- css.at-rules.import.supports