Skip to content

Commit f5b6d75

Browse files
committed
Reduce the number of text-wrap features to just 3
Only `text-wrap: balance` and `text-wrap: pretty` are significant new features, let everything elese be covered by the generic `text-wrap` feature. This changes the Baseline date of `text-wrap` a little, but it's still in 2024 and so it doesn't seem worth trying to pin it to the earlier date by trimming the `compute_from` list in a way that wouldn't match the feature decription. Fixes web-platform-dx#2543.
1 parent 8077c64 commit f5b6d75

14 files changed

+107
-121
lines changed

features/text-wrap-balance.yml

+5
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,8 @@ 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
44
group: text-wrap
5+
status:
6+
compute_from: css.properties.text-wrap.balance
7+
compat_features:
8+
- css.properties.text-wrap.balance
9+
- css.properties.text-wrap-style.balance

features/text-wrap-balance.yml.dist

+23
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,27 @@ status:
1313
safari: "17.5"
1414
safari_ios: "17.5"
1515
compat_features:
16+
# ⬇️ Same status as overall feature ⬇️
17+
# baseline: low
18+
# baseline_low_date: 2024-05-13
19+
# support:
20+
# chrome: "114"
21+
# chrome_android: "114"
22+
# edge: "114"
23+
# firefox: "121"
24+
# firefox_android: "121"
25+
# safari: "17.5"
26+
# safari_ios: "17.5"
1627
- css.properties.text-wrap.balance
28+
29+
# baseline: low
30+
# baseline_low_date: 2024-10-17
31+
# support:
32+
# chrome: "130"
33+
# chrome_android: "130"
34+
# edge: "130"
35+
# firefox: "124"
36+
# firefox_android: "124"
37+
# safari: "17.5"
38+
# safari_ios: "17.5"
39+
- css.properties.text-wrap-style.balance

features/text-wrap-mode.yml

-10
This file was deleted.

features/text-wrap-mode.yml.dist

-18
This file was deleted.

features/text-wrap-nowrap.yml

-6
This file was deleted.

features/text-wrap-nowrap.yml.dist

-16
This file was deleted.

features/text-wrap-pretty.yml

+5
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,8 @@ 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
44
group: text-wrap
5+
status:
6+
compute_from: css.properties.text-wrap.pretty
7+
compat_features:
8+
- css.properties.text-wrap.pretty
9+
- css.properties.text-wrap-style.pretty

features/text-wrap-pretty.yml.dist

+13
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,17 @@ status:
88
chrome_android: "117"
99
edge: "117"
1010
compat_features:
11+
# ⬇️ Same status as overall feature ⬇️
12+
# baseline: false
13+
# support:
14+
# chrome: "117"
15+
# chrome_android: "117"
16+
# edge: "117"
1117
- css.properties.text-wrap.pretty
18+
19+
# baseline: false
20+
# support:
21+
# chrome: "130"
22+
# chrome_android: "130"
23+
# edge: "130"
24+
- css.properties.text-wrap-style.pretty

features/text-wrap-stable.yml

-6
This file was deleted.

features/text-wrap-stable.yml.dist

-16
This file was deleted.

features/text-wrap-style.yml

-10
This file was deleted.

features/text-wrap-style.yml.dist

-32
This file was deleted.

features/text-wrap.yml

+13
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,19 @@ name: text-wrap
22
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`.
33
spec: https://drafts.csswg.org/css-text-4/#text-wrap-shorthand
44
group: text-wrap
5+
status:
6+
compute_from:
7+
- css.properties.text-wrap
8+
- css.properties.text-wrap-mode
9+
- css.properties.text-wrap-style
510
compat_features:
611
- css.properties.text-wrap
712
- css.properties.text-wrap.wrap
13+
- css.properties.text-wrap-mode
14+
- css.properties.text-wrap-mode.nowrap
15+
- css.properties.text-wrap-mode.wrap
16+
- css.properties.text-wrap.nowrap
17+
- css.properties.text-wrap.stable
18+
- css.properties.text-wrap-style
19+
- css.properties.text-wrap-style.auto
20+
- css.properties.text-wrap-style.stable

features/text-wrap.yml.dist

+48-7
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@
33

44
status:
55
baseline: low
6-
baseline_low_date: 2024-03-19
6+
baseline_low_date: 2024-10-17
77
support:
8-
chrome: "114"
9-
chrome_android: "114"
10-
edge: "114"
8+
chrome: "130"
9+
chrome_android: "130"
10+
edge: "130"
1111
firefox: "124"
1212
firefox_android: "124"
13-
safari: "17.4"
14-
safari_ios: "17.4"
13+
safari: "17.5"
14+
safari_ios: "17.5"
1515
compat_features:
1616
# baseline: low
1717
# baseline_low_date: 2024-03-05
@@ -25,7 +25,6 @@ compat_features:
2525
# safari_ios: "17.4"
2626
- css.properties.text-wrap
2727

28-
# ⬇️ Same status as overall feature ⬇️
2928
# baseline: low
3029
# baseline_low_date: 2024-03-19
3130
# support:
@@ -36,4 +35,46 @@ compat_features:
3635
# firefox_android: "124"
3736
# safari: "17.4"
3837
# safari_ios: "17.4"
38+
- css.properties.text-wrap.nowrap
3939
- css.properties.text-wrap.wrap
40+
41+
# baseline: low
42+
# baseline_low_date: 2024-10-17
43+
# support:
44+
# chrome: "130"
45+
# chrome_android: "130"
46+
# edge: "130"
47+
# firefox: "121"
48+
# firefox_android: "121"
49+
# safari: "17.5"
50+
# safari_ios: "17.5"
51+
- css.properties.text-wrap.stable
52+
53+
# baseline: low
54+
# baseline_low_date: 2024-10-17
55+
# support:
56+
# chrome: "130"
57+
# chrome_android: "130"
58+
# edge: "130"
59+
# firefox: "124"
60+
# firefox_android: "124"
61+
# safari: "17.4"
62+
# safari_ios: "17.4"
63+
- css.properties.text-wrap-mode
64+
- css.properties.text-wrap-mode.nowrap
65+
- css.properties.text-wrap-mode.wrap
66+
67+
# ⬇️ Same status as overall feature ⬇️
68+
# baseline: low
69+
# baseline_low_date: 2024-10-17
70+
# support:
71+
# chrome: "130"
72+
# chrome_android: "130"
73+
# edge: "130"
74+
# firefox: "124"
75+
# firefox_android: "124"
76+
# safari: "17.5"
77+
# safari_ios: "17.5"
78+
- css.properties.text-wrap-style
79+
- css.properties.text-wrap-style.auto
80+
- css.properties.text-wrap-style.stable

0 commit comments

Comments
 (0)