From 7376fad5c67f06fd22ff76d1806c003e96298578 Mon Sep 17 00:00:00 2001 From: James Stuckey Weber Date: Thu, 31 Oct 2024 13:58:00 -0400 Subject: [PATCH 1/4] Add CSS.supports and missing CSSOM keys --- features/css-object-model.yml | 4 ++++ features/css-object-model.yml.dist | 16 ++++++++++++++++ features/css-supports.yml | 7 +++++++ features/css-supports.yml.dist | 17 +++++++++++++++++ 4 files changed, 44 insertions(+) create mode 100644 features/css-supports.yml create mode 100644 features/css-supports.yml.dist diff --git a/features/css-object-model.yml b/features/css-object-model.yml index e2eb7f53c11..86251c4b948 100644 --- a/features/css-object-model.yml +++ b/features/css-object-model.yml @@ -81,3 +81,7 @@ compat_features: - api.CSSMarginRule - api.CSSMarginRule.name - api.CSSMarginRule.style + - api.CSSConditionRule + - api.CSSConditionRule.conditionText + - api.CSSMediaRule + - api.CSSMediaRule.media diff --git a/features/css-object-model.yml.dist b/features/css-object-model.yml.dist index f2ca5118fa7..409eec1f9b2 100644 --- a/features/css-object-model.yml.dist +++ b/features/css-object-model.yml.dist @@ -78,6 +78,8 @@ compat_features: # firefox_android: "4" # safari: "3" # safari_ios: "1" + - api.CSSMediaRule + - api.CSSMediaRule.media - api.HTMLElement.style # baseline: high @@ -204,6 +206,20 @@ compat_features: - api.CSSGroupingRule.deleteRule - api.CSSGroupingRule.insertRule + # baseline: high + # baseline_low_date: 2021-04-26 + # baseline_high_date: 2023-10-26 + # support: + # chrome: "56" + # chrome_android: "56" + # edge: "12" + # firefox: "20" + # firefox_android: "20" + # safari: "14.1" + # safari_ios: "14.5" + - api.CSSConditionRule + - api.CSSConditionRule.conditionText + # baseline: low # baseline_low_date: 2023-02-14 # support: diff --git a/features/css-supports.yml b/features/css-supports.yml new file mode 100644 index 00000000000..b240de7dd3f --- /dev/null +++ b/features/css-supports.yml @@ -0,0 +1,7 @@ +name: CSS.supports() +description: The `CSS.supports()` static method returns whether the browser supports a given CSS feature. +spec: https://www.w3.org/TR/css-conditional-3/#the-css-namespace +caniuse: css-supports-api +group: css +compat_features: + - api.CSS.supports_static diff --git a/features/css-supports.yml.dist b/features/css-supports.yml.dist new file mode 100644 index 00000000000..d89614f9748 --- /dev/null +++ b/features/css-supports.yml.dist @@ -0,0 +1,17 @@ +# Generated from: css-supports.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: "61" + chrome_android: "61" + edge: "79" + firefox: "55" + firefox_android: "55" + safari: "11" + safari_ios: "11" +compat_features: + - api.CSS.supports_static From 343c8ec4f1e0a56c02d8af308dde3f4437d1c0d9 Mon Sep 17 00:00:00 2001 From: James Stuckey Weber Date: Thu, 31 Oct 2024 14:02:00 -0400 Subject: [PATCH 2/4] Add CSSPseudoElement keys to CSSOM --- features/css-object-model.yml | 3 +++ features/css-object-model.yml.dist | 3 +++ 2 files changed, 6 insertions(+) diff --git a/features/css-object-model.yml b/features/css-object-model.yml index 86251c4b948..2e8d6c8d7aa 100644 --- a/features/css-object-model.yml +++ b/features/css-object-model.yml @@ -85,3 +85,6 @@ compat_features: - api.CSSConditionRule.conditionText - api.CSSMediaRule - api.CSSMediaRule.media + - api.CSSPseudoElement + - api.CSSPseudoElement.element + - api.CSSPseudoElement.type diff --git a/features/css-object-model.yml.dist b/features/css-object-model.yml.dist index 409eec1f9b2..fb54ff31c09 100644 --- a/features/css-object-model.yml.dist +++ b/features/css-object-model.yml.dist @@ -265,3 +265,6 @@ compat_features: - api.CSSMarginRule - api.CSSMarginRule.name - api.CSSMarginRule.style + - api.CSSPseudoElement + - api.CSSPseudoElement.element + - api.CSSPseudoElement.type From 8640f21d84ad78803b839538422477bc9b29477c Mon Sep 17 00:00:00 2001 From: James Stuckey Weber Date: Thu, 31 Oct 2024 14:05:55 -0400 Subject: [PATCH 3/4] Fix spec link --- features/css-supports.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/features/css-supports.yml b/features/css-supports.yml index b240de7dd3f..90c76b75071 100644 --- a/features/css-supports.yml +++ b/features/css-supports.yml @@ -1,6 +1,6 @@ name: CSS.supports() description: The `CSS.supports()` static method returns whether the browser supports a given CSS feature. -spec: https://www.w3.org/TR/css-conditional-3/#the-css-namespace +spec: https://drafts.csswg.org/css-conditional-3/#the-css-namespace caniuse: css-supports-api group: css compat_features: From 13a110ee164bc4d156333d8adc7ba8147c5aa21f Mon Sep 17 00:00:00 2001 From: James Stuckey Weber Date: Mon, 4 Nov 2024 13:04:07 -0500 Subject: [PATCH 4/4] Update features/css-supports.yml Co-authored-by: Daniel D. Beck --- features/css-supports.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/features/css-supports.yml b/features/css-supports.yml index 90c76b75071..3f3d521b4fc 100644 --- a/features/css-supports.yml +++ b/features/css-supports.yml @@ -1,5 +1,5 @@ name: CSS.supports() -description: The `CSS.supports()` static method returns whether the browser supports a given CSS feature. +description: The `CSS.supports()` static method returns whether the browser supports a CSS declaration (given by two arguments, a property and value) or an `@supports` at-rule condition string. spec: https://drafts.csswg.org/css-conditional-3/#the-css-namespace caniuse: css-supports-api group: css