From accb1f735c7bcd7edb57470b75880db7f11503a5 Mon Sep 17 00:00:00 2001 From: Victor W Allen Date: Fri, 1 Nov 2024 09:09:26 -0700 Subject: [PATCH 1/9] Updates font-face at-rule --- features/font-face.yml | 8 ++++++ features/font-face.yml.dist | 56 +++++++++++++++++++++++++++++++++++++ 2 files changed, 64 insertions(+) diff --git a/features/font-face.yml b/features/font-face.yml index 6540dcc2699..8158c88adf5 100644 --- a/features/font-face.yml +++ b/features/font-face.yml @@ -5,6 +5,8 @@ group: fonts caniuse: - fontface - font-unicode-range +status: + compute_from: css.at-rules.font-face.WOFF_2 compat_features: - css.at-rules.font-face - css.at-rules.font-face.font-family @@ -14,3 +16,9 @@ compat_features: - api.CSSFontFaceRule - api.CSSFontFaceRule.style - css.at-rules.font-face.unicode-range + - css.at-rules.font-face.OpenType_CBDT_CBLC + - css.at-rules.font-face.OpenType_COLRv0 + - css.at-rules.font-face.OpenType_SBIX + - css.at-rules.font-face.src.drop_invalid_item + - css.at-rules.font-face.src.format_keyword + - css.at-rules.font-face.src.tech_keyword diff --git a/features/font-face.yml.dist b/features/font-face.yml.dist index 7004ed18553..635c6d27db6 100644 --- a/features/font-face.yml.dist +++ b/features/font-face.yml.dist @@ -82,3 +82,59 @@ compat_features: # safari: "10" # safari_ios: "10" - css.at-rules.font-face.WOFF_2 + + # baseline: high + # baseline_low_date: 2020-01-15 + # baseline_high_date: 2022-07-15 + # support: + # chrome: "53" + # chrome_android: "53" + # edge: "79" + # firefox: "31" + # firefox_android: "31" + # safari: "11.1" + # safari_ios: "11.3" + - css.at-rules.font-face.OpenType_COLRv0 + + # baseline: low + # baseline_low_date: 2023-09-18 + # support: + # chrome: "108" + # chrome_android: "108" + # edge: "108" + # firefox: "107" + # firefox_android: "107" + # safari: "17" + # safari_ios: "17" + - css.at-rules.font-face.src.tech_keyword + + # baseline: false + # support: + # chrome: "66" + # chrome_android: "66" + # edge: "79" + # safari: "9.1" + # safari_ios: "9.3" + - css.at-rules.font-face.OpenType_SBIX + + # baseline: false + # support: + # chrome: "108" + # chrome_android: "108" + # edge: "108" + # safari: "4" + # safari_ios: "5" + - css.at-rules.font-face.src.format_keyword + + # baseline: false + # support: + # chrome: "66" + # chrome_android: "66" + # edge: "79" + - css.at-rules.font-face.OpenType_CBDT_CBLC + + # baseline: false + # support: + # firefox: "109" + # firefox_android: "109" + - css.at-rules.font-face.src.drop_invalid_item From c7f0e9d4253a8e7ecd2ea0745c6dfad9ceaed665 Mon Sep 17 00:00:00 2001 From: Victor W Allen Date: Fri, 1 Nov 2024 09:22:41 -0700 Subject: [PATCH 2/9] Updates font-variant keys --- features/font-variant.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/features/font-variant.yml b/features/font-variant.yml index 9e805bbc1e5..4805d8d1f23 100644 --- a/features/font-variant.yml +++ b/features/font-variant.yml @@ -14,3 +14,6 @@ compat_features: - css.properties.font-variant.sub - css.properties.font-variant.super - css.properties.font-variant.turkic_is + - css.properties.font-variant.css_fonts_shorthand + - css.properties.font-variant.greek_accented_characters + - css.properties.font-variant.uppercase_eszett From b102224cf66ed91f6d31b29853e963f2a781c641 Mon Sep 17 00:00:00 2001 From: Victor W Allen Date: Fri, 1 Nov 2024 09:29:57 -0700 Subject: [PATCH 3/9] Updates font-shorthand --- features/font-shorthand.yml | 7 +++++ features/font-shorthand.yml.dist | 49 ++++++++++++++++++++++++++------ 2 files changed, 47 insertions(+), 9 deletions(-) diff --git a/features/font-shorthand.yml b/features/font-shorthand.yml index d14ce881427..90400fe982e 100644 --- a/features/font-shorthand.yml +++ b/features/font-shorthand.yml @@ -4,3 +4,10 @@ spec: https://drafts.csswg.org/css-fonts-4/#font-prop group: fonts compat_features: - css.properties.font + - css.properties.font.caption + - css.properties.font.font_stretch_support + - css.properties.font.icon + - css.properties.font.menu + - css.properties.font.message-box + - css.properties.font.small-caption + - css.properties.font.status-bar diff --git a/features/font-shorthand.yml.dist b/features/font-shorthand.yml.dist index e7c5ab6206e..c7adf59dffd 100644 --- a/features/font-shorthand.yml.dist +++ b/features/font-shorthand.yml.dist @@ -3,15 +3,46 @@ status: baseline: high - baseline_low_date: 2015-07-29 - baseline_high_date: 2018-01-29 + baseline_low_date: 2020-01-15 + baseline_high_date: 2022-07-15 support: - chrome: "1" - chrome_android: "18" - edge: "12" - firefox: "1" - firefox_android: "4" - safari: "1" - safari_ios: "1" + chrome: "60" + chrome_android: "60" + edge: "79" + firefox: "43" + firefox_android: "43" + safari: "11" + safari_ios: "11" 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.font + - css.properties.font.caption + - css.properties.font.icon + - css.properties.font.menu + - css.properties.font.message-box + - css.properties.font.small-caption + - css.properties.font.status-bar + + # ⬇️ Same status as overall feature ⬇️ + # baseline: high + # baseline_low_date: 2020-01-15 + # baseline_high_date: 2022-07-15 + # support: + # chrome: "60" + # chrome_android: "60" + # edge: "79" + # firefox: "43" + # firefox_android: "43" + # safari: "11" + # safari_ios: "11" + - css.properties.font.font_stretch_support From c1955d9439eb7feffca7dadf481b4c4bf57d04ca Mon Sep 17 00:00:00 2001 From: Victor W Allen Date: Fri, 1 Nov 2024 10:55:55 -0700 Subject: [PATCH 4/9] Updates font-variant dist --- features/font-variant.yml.dist | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/features/font-variant.yml.dist b/features/font-variant.yml.dist index d841f555a7b..ebe46a5f83f 100644 --- a/features/font-variant.yml.dist +++ b/features/font-variant.yml.dist @@ -56,6 +56,19 @@ compat_features: # safari_ios: "8" - css.properties.font-variant.turkic_is + # baseline: high + # baseline_low_date: 2020-01-15 + # baseline_high_date: 2022-07-15 + # support: + # chrome: "52" + # chrome_android: "52" + # edge: "79" + # firefox: "34" + # firefox_android: "34" + # safari: "9.1" + # safari_ios: "9.3" + - css.properties.font-variant.css_fonts_shorthand + # baseline: high # baseline_low_date: 2020-07-28 # baseline_high_date: 2023-01-28 @@ -93,3 +106,8 @@ compat_features: # safari: "9.1" # safari_ios: "9.3" - css.properties.font-variant.historical-forms + + # baseline: false + # support: {} + - css.properties.font-variant.greek_accented_characters + - css.properties.font-variant.uppercase_eszett From f1ec23cb4f8fc23495afc83f1f5debbd418bd1c6 Mon Sep 17 00:00:00 2001 From: Victor W Allen Date: Fri, 1 Nov 2024 11:33:27 -0700 Subject: [PATCH 5/9] Adds font-synthesis shorthand keys --- features/font-synthesis.yml | 13 +++++++++ features/font-synthesis.yml.dist | 45 ++++++++++++++++++++++++++++++++ 2 files changed, 58 insertions(+) diff --git a/features/font-synthesis.yml b/features/font-synthesis.yml index bd834f44d24..f0c9da6614d 100644 --- a/features/font-synthesis.yml +++ b/features/font-synthesis.yml @@ -2,3 +2,16 @@ name: font-synthesis description: The `font-synthesis` CSS shorthand property disables all font synthesis except the given kinds. To disable a specific kind of font synthesis, instead use the longhand properties such as `font-synthesis-style` and `font-synthesis-weight`. spec: https://drafts.csswg.org/css-fonts-4/#font-synthesis group: font-synthesis +status: + compute_from: css.properties.font-synthesis +compat_features: + - css.properties.font-synthesis + # The font-synthesis shorthand and longhand properties work inversely (e.g. + # `font-synthesis-wieght: none` affects weight, while `font-synthesis: weight` + # affects all options but weight). So these keys cannot be included in + # the longhand features. + # See https://github.com/w3c/csswg-drafts/issues/1641. + - css.properties.font-synthesis.position + - css.properties.font-synthesis.small-caps + - css.properties.font-synthesis.style + - css.properties.font-synthesis.weight diff --git a/features/font-synthesis.yml.dist b/features/font-synthesis.yml.dist index 88064a0ae8d..04c51db5d19 100644 --- a/features/font-synthesis.yml.dist +++ b/features/font-synthesis.yml.dist @@ -14,4 +14,49 @@ status: safari: "9" safari_ios: "9" compat_features: + # ⬇️ Same status as overall feature ⬇️ + # baseline: high + # baseline_low_date: 2022-01-06 + # baseline_high_date: 2024-07-06 + # support: + # chrome: "97" + # chrome_android: "97" + # edge: "97" + # firefox: "34" + # firefox_android: "34" + # safari: "9" + # safari_ios: "9" - css.properties.font-synthesis + + # baseline: high + # baseline_low_date: 2022-01-06 + # baseline_high_date: 2024-07-06 + # support: + # chrome: "97" + # chrome_android: "97" + # edge: "97" + # firefox: "93" + # firefox_android: "93" + # safari: "10.1" + # safari_ios: "10.3" + - css.properties.font-synthesis.small-caps + + # baseline: high + # baseline_low_date: 2022-01-06 + # baseline_high_date: 2024-07-06 + # support: + # chrome: "97" + # chrome_android: "97" + # edge: "97" + # firefox: ≤72 + # firefox_android: "79" + # safari: "10.1" + # safari_ios: "10.3" + - css.properties.font-synthesis.style + - css.properties.font-synthesis.weight + + # baseline: false + # support: + # firefox: "118" + # firefox_android: "118" + - css.properties.font-synthesis.position From fa9d616453c387a43480cf5cafb06626be006fe3 Mon Sep 17 00:00:00 2001 From: Victor W Allen Date: Fri, 1 Nov 2024 12:07:47 -0700 Subject: [PATCH 6/9] Misc font keys cleanup --- features/colrv0.yml | 7 ++++++ features/colrv0.yml.dist | 17 +++++++++++++ features/font-face.yml | 1 - features/font-face.yml.dist | 13 ---------- features/font-shorthand.yml | 1 - features/font-shorthand.yml.dist | 43 +++++++------------------------- features/font-stretch.yml | 1 + features/font-stretch.yml.dist | 13 ++++++++++ 8 files changed, 47 insertions(+), 49 deletions(-) create mode 100644 features/colrv0.yml create mode 100644 features/colrv0.yml.dist diff --git a/features/colrv0.yml b/features/colrv0.yml new file mode 100644 index 00000000000..ae35d829099 --- /dev/null +++ b/features/colrv0.yml @@ -0,0 +1,7 @@ +name: COLRv0 +description: COLRv0 is a font format that supports multi-color glyphs. +spec: https://www.iso.org/standard/74461.html +group: fonts +caniuse: colr +compat_features: + - css.at-rules.font-face.OpenType_COLRv0 diff --git a/features/colrv0.yml.dist b/features/colrv0.yml.dist new file mode 100644 index 00000000000..f27d87ba920 --- /dev/null +++ b/features/colrv0.yml.dist @@ -0,0 +1,17 @@ +# Generated from: colrv0.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: "53" + chrome_android: "53" + edge: "79" + firefox: "31" + firefox_android: "31" + safari: "11.1" + safari_ios: "11.3" +compat_features: + - css.at-rules.font-face.OpenType_COLRv0 diff --git a/features/font-face.yml b/features/font-face.yml index 8158c88adf5..351e8b9c597 100644 --- a/features/font-face.yml +++ b/features/font-face.yml @@ -17,7 +17,6 @@ compat_features: - api.CSSFontFaceRule.style - css.at-rules.font-face.unicode-range - css.at-rules.font-face.OpenType_CBDT_CBLC - - css.at-rules.font-face.OpenType_COLRv0 - css.at-rules.font-face.OpenType_SBIX - css.at-rules.font-face.src.drop_invalid_item - css.at-rules.font-face.src.format_keyword diff --git a/features/font-face.yml.dist b/features/font-face.yml.dist index 635c6d27db6..210f11da755 100644 --- a/features/font-face.yml.dist +++ b/features/font-face.yml.dist @@ -83,19 +83,6 @@ compat_features: # safari_ios: "10" - css.at-rules.font-face.WOFF_2 - # baseline: high - # baseline_low_date: 2020-01-15 - # baseline_high_date: 2022-07-15 - # support: - # chrome: "53" - # chrome_android: "53" - # edge: "79" - # firefox: "31" - # firefox_android: "31" - # safari: "11.1" - # safari_ios: "11.3" - - css.at-rules.font-face.OpenType_COLRv0 - # baseline: low # baseline_low_date: 2023-09-18 # support: diff --git a/features/font-shorthand.yml b/features/font-shorthand.yml index 90400fe982e..f91bdc8ae8d 100644 --- a/features/font-shorthand.yml +++ b/features/font-shorthand.yml @@ -5,7 +5,6 @@ group: fonts compat_features: - css.properties.font - css.properties.font.caption - - css.properties.font.font_stretch_support - css.properties.font.icon - css.properties.font.menu - css.properties.font.message-box diff --git a/features/font-shorthand.yml.dist b/features/font-shorthand.yml.dist index c7adf59dffd..94901e40013 100644 --- a/features/font-shorthand.yml.dist +++ b/features/font-shorthand.yml.dist @@ -3,28 +3,17 @@ status: baseline: high - baseline_low_date: 2020-01-15 - baseline_high_date: 2022-07-15 + baseline_low_date: 2015-07-29 + baseline_high_date: 2018-01-29 support: - chrome: "60" - chrome_android: "60" - edge: "79" - firefox: "43" - firefox_android: "43" - safari: "11" - safari_ios: "11" + chrome: "1" + chrome_android: "18" + edge: "12" + firefox: "1" + firefox_android: "4" + safari: "1" + safari_ios: "1" 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.font - css.properties.font.caption - css.properties.font.icon @@ -32,17 +21,3 @@ compat_features: - css.properties.font.message-box - css.properties.font.small-caption - css.properties.font.status-bar - - # ⬇️ Same status as overall feature ⬇️ - # baseline: high - # baseline_low_date: 2020-01-15 - # baseline_high_date: 2022-07-15 - # support: - # chrome: "60" - # chrome_android: "60" - # edge: "79" - # firefox: "43" - # firefox_android: "43" - # safari: "11" - # safari_ios: "11" - - css.properties.font.font_stretch_support diff --git a/features/font-stretch.yml b/features/font-stretch.yml index 6aa105ef054..9c4b887dde1 100644 --- a/features/font-stretch.yml +++ b/features/font-stretch.yml @@ -10,4 +10,5 @@ compat_features: - css.at-rules.font-face.font-stretch - css.properties.font-stretch - css.properties.font-stretch.percentage + - css.properties.font.font_stretch_support - svg.global_attributes.font-stretch diff --git a/features/font-stretch.yml.dist b/features/font-stretch.yml.dist index 2daba6f4a28..f0db703dc3f 100644 --- a/features/font-stretch.yml.dist +++ b/features/font-stretch.yml.dist @@ -54,3 +54,16 @@ compat_features: # safari: "11.1" # safari_ios: "11.3" - css.properties.font-stretch.percentage + + # baseline: high + # baseline_low_date: 2020-01-15 + # baseline_high_date: 2022-07-15 + # support: + # chrome: "60" + # chrome_android: "60" + # edge: "79" + # firefox: "43" + # firefox_android: "43" + # safari: "11" + # safari_ios: "11" + - css.properties.font.font_stretch_support From d3de53cff3ca59b685f0ad72ba5de138ac16e39d Mon Sep 17 00:00:00 2001 From: Victor W Allen Date: Tue, 5 Nov 2024 09:22:58 -0800 Subject: [PATCH 7/9] Updates spec --- features/colrv0.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/features/colrv0.yml b/features/colrv0.yml index ae35d829099..098c3956e31 100644 --- a/features/colrv0.yml +++ b/features/colrv0.yml @@ -1,6 +1,6 @@ name: COLRv0 description: COLRv0 is a font format that supports multi-color glyphs. -spec: https://www.iso.org/standard/74461.html +spec: https://www.iso.org/standard/87621.html group: fonts caniuse: colr compat_features: From 0e89e1d0a941abba629f6bffcd79b2e722fa3b63 Mon Sep 17 00:00:00 2001 From: James Stuckey Weber Date: Fri, 8 Nov 2024 09:18:49 -0500 Subject: [PATCH 8/9] Fix typo --- features/font-synthesis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/features/font-synthesis.yml b/features/font-synthesis.yml index f0c9da6614d..c99f770c20e 100644 --- a/features/font-synthesis.yml +++ b/features/font-synthesis.yml @@ -7,7 +7,7 @@ status: compat_features: - css.properties.font-synthesis # The font-synthesis shorthand and longhand properties work inversely (e.g. - # `font-synthesis-wieght: none` affects weight, while `font-synthesis: weight` + # `font-synthesis-weight: none` affects weight, while `font-synthesis: weight` # affects all options but weight). So these keys cannot be included in # the longhand features. # See https://github.com/w3c/csswg-drafts/issues/1641. From c3a0948820f7b3354849dd66fafe8478a5c1982b Mon Sep 17 00:00:00 2001 From: Victor W Allen Date: Mon, 11 Nov 2024 08:55:35 -0800 Subject: [PATCH 9/9] Differentiates COLR versions --- features/colrv0.yml | 2 +- features/colrv1.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/features/colrv0.yml b/features/colrv0.yml index 098c3956e31..cc440b4386b 100644 --- a/features/colrv0.yml +++ b/features/colrv0.yml @@ -1,5 +1,5 @@ name: COLRv0 -description: COLRv0 is a font format that supports multi-color glyphs. +description: COLRv0 is a font format that supports multi-color glyphs. COLRv0 supports only solid colors. spec: https://www.iso.org/standard/87621.html group: fonts caniuse: colr diff --git a/features/colrv1.yml b/features/colrv1.yml index 0a7fc7c0e43..e39605f065e 100644 --- a/features/colrv1.yml +++ b/features/colrv1.yml @@ -1,5 +1,5 @@ name: COLRv1 -description: COLRv1 is a font format that supports multi-color glyphs. +description: COLRv1 is a font format that supports multi-color glyphs. COLRv1 extends COLRv0 to support gradients, transforms, and blending modes. spec: https://www.iso.org/standard/87621.html group: fonts caniuse: colr-v1