From 07157430d4be5718cfc17a4af660442e8944acbf Mon Sep 17 00:00:00 2001 From: Victor W Allen Date: Tue, 5 Nov 2024 07:43:57 -0800 Subject: [PATCH 1/2] Adds calc-size feature --- features/calc-size.yml | 6 +++++ features/calc-size.yml.dist | 11 ++++++++ features/calc.yml | 5 ++++ features/calc.yml.dist | 51 +++++++++++++++++++++++++++++++++++++ 4 files changed, 73 insertions(+) create mode 100644 features/calc-size.yml create mode 100644 features/calc-size.yml.dist diff --git a/features/calc-size.yml b/features/calc-size.yml new file mode 100644 index 00000000000..2c0f9c994d6 --- /dev/null +++ b/features/calc-size.yml @@ -0,0 +1,6 @@ +name: calc-size() +description: The `calc-size()` CSS function computes mathematical expressions that include `height` and `weight` keyword values, for example `calc-size(fit-content, size / 2)`. Not to be confused with the `calc()` CSS function, which cannot use keyword values. +spec: https://drafts.csswg.org/css-values-5/#calc-size +group: css +compat_features: + - css.types.calc-size diff --git a/features/calc-size.yml.dist b/features/calc-size.yml.dist new file mode 100644 index 00000000000..1b73b4b927f --- /dev/null +++ b/features/calc-size.yml.dist @@ -0,0 +1,11 @@ +# Generated from: calc-size.yml +# Do not edit this file by hand. Edit the source file instead! + +status: + baseline: false + support: + chrome: "129" + chrome_android: "129" + edge: "129" +compat_features: + - css.types.calc-size diff --git a/features/calc.yml b/features/calc.yml index 36954bb1e26..9a32137ab6f 100644 --- a/features/calc.yml +++ b/features/calc.yml @@ -3,5 +3,10 @@ description: The `calc()` CSS function computes mathematical expressions such a spec: https://drafts.csswg.org/css-values-3/#calc-notation group: css caniuse: calc +status: + compute_from: css.types.calc compat_features: - css.types.calc + - css.types.calc.gradient_color_stops + - css.types.calc.nested + - css.types.calc.number_values diff --git a/features/calc.yml.dist b/features/calc.yml.dist index a912ece6def..99b8b7bc415 100644 --- a/features/calc.yml.dist +++ b/features/calc.yml.dist @@ -14,4 +14,55 @@ status: safari: "7" safari_ios: "7" compat_features: + # ⬇️ Same status as overall feature ⬇️ + # baseline: high + # baseline_low_date: 2015-07-29 + # baseline_high_date: 2018-01-29 + # support: + # chrome: "26" + # chrome_android: "28" + # edge: "12" + # firefox: "16" + # firefox_android: "16" + # safari: "7" + # safari_ios: "7" - css.types.calc + + # baseline: high + # baseline_low_date: 2015-07-29 + # baseline_high_date: 2018-01-29 + # support: + # chrome: "26" + # chrome_android: "28" + # edge: "12" + # firefox: "19" + # firefox_android: "19" + # safari: "7" + # safari_ios: "7" + - css.types.calc.gradient_color_stops + + # baseline: high + # baseline_low_date: 2016-08-02 + # baseline_high_date: 2019-02-02 + # support: + # chrome: "31" + # chrome_android: "31" + # edge: "12" + # firefox: "48" + # firefox_android: "48" + # safari: "7" + # safari_ios: "7" + - css.types.calc.number_values + + # baseline: high + # baseline_low_date: 2017-10-17 + # baseline_high_date: 2020-04-17 + # support: + # chrome: "51" + # chrome_android: "51" + # edge: "16" + # firefox: "48" + # firefox_android: "48" + # safari: "11" + # safari_ios: "11" + - css.types.calc.nested From 123579aca54afd4be5ad5ea8f6728725f2cabfc5 Mon Sep 17 00:00:00 2001 From: Victor Allen Date: Tue, 5 Nov 2024 08:37:53 -0800 Subject: [PATCH 2/2] Fixes typo per suggestion Co-authored-by: Daniel D. Beck --- features/calc-size.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/features/calc-size.yml b/features/calc-size.yml index 2c0f9c994d6..263fdb3871b 100644 --- a/features/calc-size.yml +++ b/features/calc-size.yml @@ -1,5 +1,5 @@ name: calc-size() -description: The `calc-size()` CSS function computes mathematical expressions that include `height` and `weight` keyword values, for example `calc-size(fit-content, size / 2)`. Not to be confused with the `calc()` CSS function, which cannot use keyword values. +description: The `calc-size()` CSS function computes mathematical expressions that include `height` and `width` keyword values, for example `calc-size(fit-content, size / 2)`. Not to be confused with the `calc()` CSS function, which cannot use keyword values. spec: https://drafts.csswg.org/css-values-5/#calc-size group: css compat_features: