Skip to content

Commit 68ae1c5

Browse files
authored
Add textwrap group and feature (#1895)
* Add textwrap group and feature * Resort text-wrap keys, review
1 parent f2f1b2a commit 68ae1c5

12 files changed

+99
-5
lines changed

features/text-wrap-balance.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
name: "text-wrap: balance"
22
description: "The `text-wrap: balance` CSS declaration balances the length of each line when text is broken into multiple lines. Also known as headline balancing."
33
spec: https://drafts.csswg.org/css-text-4/#valdef-text-wrap-style-balance
4-
group: css
4+
group: text-wrap

features/text-wrap-mode.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
name: text-wrap-mode
22
description: The `text-wrap-mode` CSS property sets whether lines may wrap with the values `wrap` and `nowrap`. It is a longhand property for both `white-space` and `text-wrap`.
33
spec: https://drafts.csswg.org/css-text-4/#text-wrap-mode
4-
group: white-space
4+
group:
5+
- white-space
6+
- text-wrap
57
compat_features:
68
- css.properties.text-wrap-mode
79
- css.properties.text-wrap-mode.nowrap

features/text-wrap-nowrap.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
name: "text-wrap: nowrap"
22
description: "The `text-wrap: nowrap` CSS declaration prevents text breaking into multiple lines. Text that doesn't fit overflows instead."
33
spec: https://drafts.csswg.org/css-text-4/#valdef-text-wrap-mode-nowrap
4-
group: css
4+
group: text-wrap
5+
compat_features:
6+
- css.properties.text-wrap.nowrap

features/text-wrap-nowrap.yml.dist

-1
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,3 @@ status:
1414
safari_ios: "17.4"
1515
compat_features:
1616
- css.properties.text-wrap.nowrap
17-
- css.properties.text-wrap.wrap

features/text-wrap-pretty.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
name: "text-wrap: pretty"
22
description: "The `text-wrap: pretty` CSS declaration prioritizes better layout over speed when text is broken into multiple lines."
33
spec: https://drafts.csswg.org/css-text-4/#valdef-text-wrap-style-pretty
4-
group: css
4+
group: text-wrap

features/text-wrap-stable.yml

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
name: "text-wrap: stable"
2+
description: "The `text-wrap: stable` CSS declaration wraps text using the default algorithm, but does not change wrapping on earlier lines while the text is being edited."
3+
spec: https://drafts.csswg.org/css-text-4/#valdef-text-wrap-style-stable
4+
group: text-wrap
5+
compat_features:
6+
- css.properties.text-wrap.stable

features/text-wrap-stable.yml.dist

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Generated from: text-wrap-stable.yml
2+
# Do not edit this file by hand. Edit the source file instead!
3+
4+
status:
5+
baseline: false
6+
support:
7+
firefox: "121"
8+
firefox_android: "121"
9+
safari: "17.5"
10+
safari_ios: "17.5"
11+
compat_features:
12+
- css.properties.text-wrap.stable

features/text-wrap-style.yml

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
name: text-wrap-style
2+
description: The `text-wrap-style` CSS property sets how lines break in text that overflows the container. It can also be set with the `text-wrap` shorthand.
3+
spec: https://drafts.csswg.org/css-text-4/#text-wrap-style
4+
group: text-wrap
5+
compat_features:
6+
- css.properties.text-wrap-style
7+
- css.properties.text-wrap-style.auto
8+
- css.properties.text-wrap-style.balance
9+
- css.properties.text-wrap-style.stable

features/text-wrap-style.yml.dist

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Generated from: text-wrap-style.yml
2+
# Do not edit this file by hand. Edit the source file instead!
3+
4+
status:
5+
baseline: false
6+
support:
7+
firefox: "124"
8+
firefox_android: "124"
9+
safari: "17.5"
10+
safari_ios: "17.5"
11+
compat_features:
12+
- css.properties.text-wrap-style
13+
- css.properties.text-wrap-style.auto
14+
- css.properties.text-wrap-style.balance
15+
- css.properties.text-wrap-style.stable

features/text-wrap.yml

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
name: text-wrap
2+
description: The `text-wrap` CSS property sets how lines break in text that overflows the container. It is a shorthand for `text-wrap-style` and `text-wrap-mode`.
3+
spec: https://drafts.csswg.org/css-text-4/#text-wrap-shorthand
4+
group: text-wrap
5+
compat_features:
6+
- css.properties.text-wrap
7+
- css.properties.text-wrap.wrap

features/text-wrap.yml.dist

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# Generated from: text-wrap.yml
2+
# Do not edit this file by hand. Edit the source file instead!
3+
4+
status:
5+
baseline: low
6+
baseline_low_date: 2024-03-19
7+
support:
8+
chrome: "114"
9+
chrome_android: "114"
10+
edge: "114"
11+
firefox: "124"
12+
firefox_android: "124"
13+
safari: "17.4"
14+
safari_ios: "17.4"
15+
compat_features:
16+
# baseline: low
17+
# baseline_low_date: 2024-03-05
18+
# support:
19+
# chrome: "114"
20+
# chrome_android: "114"
21+
# edge: "114"
22+
# firefox: "121"
23+
# firefox_android: "121"
24+
# safari: "17.4"
25+
# safari_ios: "17.4"
26+
- css.properties.text-wrap
27+
28+
# ⬇️ Same status as overall feature ⬇️
29+
# baseline: low
30+
# baseline_low_date: 2024-03-19
31+
# support:
32+
# chrome: "114"
33+
# chrome_android: "114"
34+
# edge: "114"
35+
# firefox: "124"
36+
# firefox_android: "124"
37+
# safari: "17.4"
38+
# safari_ios: "17.4"
39+
- css.properties.text-wrap.wrap

groups/text-wrap.yml

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
name: Text wrap
2+
# Features relating to how lines break.
3+
parent: css

0 commit comments

Comments
 (0)