From f9c0f36c7fe94c967bb9e8b511531e8fb146424d Mon Sep 17 00:00:00 2001 From: James Stuckey Weber Date: Wed, 6 Nov 2024 12:27:31 -0500 Subject: [PATCH 1/2] Add text-box feature --- features/draft/text-box-trim.yml | 5 ----- features/draft/text-box-trim.yml.dist | 6 ------ features/text-box.yml | 15 +++++++++++++++ features/text-box.yml.dist | 16 ++++++++++++++++ 4 files changed, 31 insertions(+), 11 deletions(-) delete mode 100644 features/draft/text-box-trim.yml delete mode 100644 features/draft/text-box-trim.yml.dist create mode 100644 features/text-box.yml create mode 100644 features/text-box.yml.dist diff --git a/features/draft/text-box-trim.yml b/features/draft/text-box-trim.yml deleted file mode 100644 index 461cfdfb89b..00000000000 --- a/features/draft/text-box-trim.yml +++ /dev/null @@ -1,5 +0,0 @@ -# TODO: Publish when supported by some browser. -draft_date: 2024-04-30 -name: text-box-trim -description: The `text-box-trim` CSS property removes the additional space above and below text which is normally reserved for ascenders and descenders. -spec: https://drafts.csswg.org/css-inline-3/#leading-trim diff --git a/features/draft/text-box-trim.yml.dist b/features/draft/text-box-trim.yml.dist deleted file mode 100644 index 48fbdd95df5..00000000000 --- a/features/draft/text-box-trim.yml.dist +++ /dev/null @@ -1,6 +0,0 @@ -# Generated from: text-box-trim.yml -# Do not edit this file by hand. Edit the source file instead! - -status: - baseline: false - support: {} diff --git a/features/text-box.yml b/features/text-box.yml new file mode 100644 index 00000000000..6b78602c9b9 --- /dev/null +++ b/features/text-box.yml @@ -0,0 +1,15 @@ +name: text-box +description: "The `text-box` CSS property sets the spacing above and below text which is normally reserved for ascenders and descenders, based on a font's typographic features. For example, `text-box: trim-both ex alphabetic` trims the top to the top of the letter x and the bottom to the bottom of most letters, without descenders." +spec: https://drafts.csswg.org/css-inline-3/#leading-trim +group: text +caniuse: css-text-box-trim +compat_features: + - css.properties.text-box + - css.properties.text-box-edge + - css.properties.text-box-edge.auto + - css.properties.text-box-trim + - css.properties.text-box-trim.none + - css.properties.text-box-trim.trim-both + - css.properties.text-box-trim.trim-end + - css.properties.text-box-trim.trim-start + - css.properties.text-box.normal diff --git a/features/text-box.yml.dist b/features/text-box.yml.dist new file mode 100644 index 00000000000..67b23ec9d1d --- /dev/null +++ b/features/text-box.yml.dist @@ -0,0 +1,16 @@ +# Generated from: text-box.yml +# Do not edit this file by hand. Edit the source file instead! + +status: + baseline: false + support: {} +compat_features: + - css.properties.text-box + - css.properties.text-box-edge + - css.properties.text-box-edge.auto + - css.properties.text-box-trim + - css.properties.text-box-trim.none + - css.properties.text-box-trim.trim-both + - css.properties.text-box-trim.trim-end + - css.properties.text-box-trim.trim-start + - css.properties.text-box.normal From c7b36e289d525b914e151ac744ba33b46927b684 Mon Sep 17 00:00:00 2001 From: James Stuckey Weber Date: Wed, 6 Nov 2024 12:29:59 -0500 Subject: [PATCH 2/2] Shorten description --- features/text-box.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/features/text-box.yml b/features/text-box.yml index 6b78602c9b9..c669c87034a 100644 --- a/features/text-box.yml +++ b/features/text-box.yml @@ -1,5 +1,5 @@ name: text-box -description: "The `text-box` CSS property sets the spacing above and below text which is normally reserved for ascenders and descenders, based on a font's typographic features. For example, `text-box: trim-both ex alphabetic` trims the top to the top of the letter x and the bottom to the bottom of most letters, without descenders." +description: "The `text-box` CSS property sets the spacing above and below text based on a font's typographic features. For example, `text-box: trim-both ex alphabetic` trims the top to the top of the letter x and the bottom to the bottom of most letters, without descenders." spec: https://drafts.csswg.org/css-inline-3/#leading-trim group: text caniuse: css-text-box-trim