Skip to content
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

[css-text-4] split text-wrap: pretty | balance from text-wrap: wrap | nowrap #9197

Closed
fantasai opened this issue Aug 16, 2023 · 3 comments
Closed
Labels
Closed as Duplicate css-text-4 Testing Unnecessary Memory aid - issue doesn't require tests

Comments

@fantasai
Copy link
Collaborator

The original intention of the text-wrap longhand of white-space was to host the wrap and nowrap values, i.e. control whether or not text wraps.

Along the way we added controls about how it wraps: balance, pretty. And now people are discussing whether to add more controls here.

But probably the question of how something wraps should cascade independently of whether it wraps, similar to how text-justify is a separate property from text-align: justify.

Should we split out these values so that we have:

  • white-space
    • white-space-collapse: collapse | preserve | etc.
    • something: wrap | nowrap
  • otherthing: normal | balance | pretty | etc.

?

Possible names for these properties (I'm not sold on any of them): text-wrap, line-wrap, inline-wrap, wrap-style, wrap-behavior, ...

@fantasai
Copy link
Collaborator Author

CC @kojiishi

@chrishtr
Copy link
Contributor

Hi, is this a dup of #9102?

@frivoal
Copy link
Collaborator

frivoal commented Aug 17, 2023

Hi, is this a dup of #9102?

I'd say it is, yes.

@frivoal frivoal added the Testing Unnecessary Memory aid - issue doesn't require tests label Oct 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Closed as Duplicate css-text-4 Testing Unnecessary Memory aid - issue doesn't require tests
Projects
None yet
Development

No branches or pull requests

3 participants