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] white-space shorthand values cannot be fully expressed using its longhands #8256

Closed
nt1m opened this issue Dec 23, 2022 · 5 comments

Comments

@nt1m
Copy link
Member

nt1m commented Dec 23, 2022

https://drafts.csswg.org/css-text-4/#white-space-property

See issues 3 & 4.

WebKit assumes that shorthands don't have other side effects than just setting their longhands. So every single of the shorthand values should be expressible in some form by their longhands.

@Loirooriol
Copy link
Contributor

It's not ideal (see #8055), but there are the precedents like system fonts, which set longhands to an internal value that serializes to empty string. This could be a temporary solution if you want to implement the longhands.

@nt1m
Copy link
Member Author

nt1m commented Dec 23, 2022

there are the precedents like system fonts, which set longhands to an internal value that serializes to empty string.

This means the spec cannot be implemented without implementing the full set of longhands at least, even though text-space-collapse & text-space-trim are not stable.

@fantasai
Copy link
Collaborator

@nt1m Is there some particular feature that you want from L4? Sorting this out is on the to-do list, but there hasn't been a lot of interest in the extended white space values...

@nt1m
Copy link
Member Author

nt1m commented Dec 30, 2022

@fantasai I'm interested in implementing text-wrap and text-group-align more specifically.

@fantasai
Copy link
Collaborator

fantasai commented Mar 6, 2023

Fixed in #8274 @nt1m Please file follow-up issues if you notice anything wrong!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants