Skip to content

Commit a13a160

Browse files
Add text-decoration-line: spelling-error and grammar-error feature (#3846)
Suggested-By: https://github.com/web-platform-dx/web-features/pull/3841/changes#r2894663729 Co-authored-by: Patrick Brosset <patrickbrosset@gmail.com>
1 parent bd3c8b6 commit a13a160

4 files changed

Lines changed: 24 additions & 15 deletions

File tree

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
name: Spelling and grammar text decorations
2+
description: >
3+
The `text-decoration-line: spelling-error` and `text-decoration-line: grammar-error` CSS declarations apply the browser's marking for spelling and grammatical mistakes. This is typically a wavy underline in red or green.
4+
spec: https://drafts.csswg.org/css-text-decor-4/#valdef-text-decoration-line-spelling-error
5+
compat_features:
6+
- css.properties.text-decoration-line.grammar-error
7+
- css.properties.text-decoration-line.spelling-error
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Generated from: text-decoration-spelling-grammar.yml
2+
# Do not edit this file by hand. Edit the source file instead!
3+
4+
status:
5+
baseline: low
6+
baseline_low_date: 2025-12-12
7+
support:
8+
chrome: "121"
9+
chrome_android: "121"
10+
edge: "121"
11+
firefox: "137"
12+
firefox_android: "137"
13+
safari: "26.2"
14+
safari_ios: "26.2"
15+
compat_features:
16+
- css.properties.text-decoration-line.grammar-error
17+
- css.properties.text-decoration-line.spelling-error

features/text-decoration.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,9 @@ compat_features:
88
- css.properties.text-decoration
99
- css.properties.text-decoration-color
1010
- css.properties.text-decoration-line
11-
- css.properties.text-decoration-line.grammar-error
1211
- css.properties.text-decoration-line.line-through
1312
- css.properties.text-decoration-line.none
1413
- css.properties.text-decoration-line.overline
15-
- css.properties.text-decoration-line.spelling-error
1614
- css.properties.text-decoration-line.underline
1715
- css.properties.text-decoration-skip
1816
- css.properties.text-decoration-skip.auto

features/text-decoration.yml.dist

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -99,19 +99,6 @@ compat_features:
9999
# safari_ios: "26.2"
100100
- css.properties.text-decoration.includes_thickness
101101

102-
# baseline: low
103-
# baseline_low_date: 2025-12-12
104-
# support:
105-
# chrome: "121"
106-
# chrome_android: "121"
107-
# edge: "121"
108-
# firefox: "137"
109-
# firefox_android: "137"
110-
# safari: "26.2"
111-
# safari_ios: "26.2"
112-
- css.properties.text-decoration-line.grammar-error
113-
- css.properties.text-decoration-line.spelling-error
114-
115102
# baseline: false
116103
# support:
117104
# safari: "12.1"

0 commit comments

Comments
 (0)