Skip to content

Reduce the number of text-wrap features to just 3 #2900

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions features/text-wrap-balance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,8 @@ name: "text-wrap: balance"
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."
spec: https://drafts.csswg.org/css-text-4/#valdef-text-wrap-style-balance
group: text-wrap
status:
compute_from: css.properties.text-wrap.balance
compat_features:
- css.properties.text-wrap.balance
- css.properties.text-wrap-style.balance
23 changes: 23 additions & 0 deletions features/text-wrap-balance.yml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,27 @@ status:
safari: "17.5"
safari_ios: "17.5"
compat_features:
# ⬇️ Same status as overall feature ⬇️
# baseline: low
# baseline_low_date: 2024-05-13
# support:
# chrome: "114"
# chrome_android: "114"
# edge: "114"
# firefox: "121"
# firefox_android: "121"
# safari: "17.5"
# safari_ios: "17.5"
- css.properties.text-wrap.balance

# baseline: low
# baseline_low_date: 2024-10-17
# support:
# chrome: "130"
# chrome_android: "130"
# edge: "130"
# firefox: "124"
# firefox_android: "124"
# safari: "17.5"
# safari_ios: "17.5"
- css.properties.text-wrap-style.balance
10 changes: 0 additions & 10 deletions features/text-wrap-mode.yml

This file was deleted.

18 changes: 0 additions & 18 deletions features/text-wrap-mode.yml.dist

This file was deleted.

6 changes: 0 additions & 6 deletions features/text-wrap-nowrap.yml

This file was deleted.

16 changes: 0 additions & 16 deletions features/text-wrap-nowrap.yml.dist

This file was deleted.

5 changes: 5 additions & 0 deletions features/text-wrap-pretty.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,8 @@ name: "text-wrap: pretty"
description: "The `text-wrap: pretty` CSS declaration prioritizes better layout over speed when text is broken into multiple lines."
spec: https://drafts.csswg.org/css-text-4/#valdef-text-wrap-style-pretty
group: text-wrap
status:
compute_from: css.properties.text-wrap.pretty
compat_features:
- css.properties.text-wrap.pretty
- css.properties.text-wrap-style.pretty
13 changes: 13 additions & 0 deletions features/text-wrap-pretty.yml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,17 @@ status:
chrome_android: "117"
edge: "117"
compat_features:
# ⬇️ Same status as overall feature ⬇️
# baseline: false
# support:
# chrome: "117"
# chrome_android: "117"
# edge: "117"
- css.properties.text-wrap.pretty

# baseline: false
# support:
# chrome: "130"
# chrome_android: "130"
# edge: "130"
- css.properties.text-wrap-style.pretty
6 changes: 0 additions & 6 deletions features/text-wrap-stable.yml

This file was deleted.

16 changes: 0 additions & 16 deletions features/text-wrap-stable.yml.dist

This file was deleted.

10 changes: 0 additions & 10 deletions features/text-wrap-style.yml

This file was deleted.

32 changes: 0 additions & 32 deletions features/text-wrap-style.yml.dist

This file was deleted.

13 changes: 13 additions & 0 deletions features/text-wrap.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,19 @@ name: text-wrap
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`.
spec: https://drafts.csswg.org/css-text-4/#text-wrap-shorthand
group: text-wrap
status:
compute_from:
- css.properties.text-wrap
- css.properties.text-wrap-mode
- css.properties.text-wrap-style
compat_features:
- css.properties.text-wrap
- css.properties.text-wrap.wrap
- css.properties.text-wrap-mode
- css.properties.text-wrap-mode.nowrap
- css.properties.text-wrap-mode.wrap
- css.properties.text-wrap.nowrap
- css.properties.text-wrap.stable
- css.properties.text-wrap-style
- css.properties.text-wrap-style.auto
- css.properties.text-wrap-style.stable
55 changes: 48 additions & 7 deletions features/text-wrap.yml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@

status:
baseline: low
baseline_low_date: 2024-03-19
baseline_low_date: 2024-10-17
support:
chrome: "114"
chrome_android: "114"
edge: "114"
chrome: "130"
chrome_android: "130"
edge: "130"
firefox: "124"
firefox_android: "124"
safari: "17.4"
safari_ios: "17.4"
safari: "17.5"
safari_ios: "17.5"
compat_features:
# baseline: low
# baseline_low_date: 2024-03-05
Expand All @@ -25,7 +25,6 @@ compat_features:
# safari_ios: "17.4"
- css.properties.text-wrap

# ⬇️ Same status as overall feature ⬇️
# baseline: low
# baseline_low_date: 2024-03-19
# support:
Expand All @@ -36,4 +35,46 @@ compat_features:
# firefox_android: "124"
# safari: "17.4"
# safari_ios: "17.4"
- css.properties.text-wrap.nowrap
- css.properties.text-wrap.wrap

# baseline: low
# baseline_low_date: 2024-10-17
# support:
# chrome: "130"
# chrome_android: "130"
# edge: "130"
# firefox: "121"
# firefox_android: "121"
# safari: "17.5"
# safari_ios: "17.5"
- css.properties.text-wrap.stable

# baseline: low
# baseline_low_date: 2024-10-17
# support:
# chrome: "130"
# chrome_android: "130"
# edge: "130"
# firefox: "124"
# firefox_android: "124"
# safari: "17.4"
# safari_ios: "17.4"
- css.properties.text-wrap-mode
- css.properties.text-wrap-mode.nowrap
- css.properties.text-wrap-mode.wrap

# ⬇️ Same status as overall feature ⬇️
# baseline: low
# baseline_low_date: 2024-10-17
# support:
# chrome: "130"
# chrome_android: "130"
# edge: "130"
# firefox: "124"
# firefox_android: "124"
# safari: "17.5"
# safari_ios: "17.5"
- css.properties.text-wrap-style
- css.properties.text-wrap-style.auto
- css.properties.text-wrap-style.stable
Loading