-
Notifications
You must be signed in to change notification settings - Fork 22.5k
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
Update syntax for white-space
#37494
Conversation
Preview URLs
Flaws (192)URL:
URL:
URL:
URL:
External URLs (2)URL: (comment last updated: 2025-01-06 04:02:59) |
white-space
no longer a shorthand for text-wrap
white-space
become a shorthand for text-wrap-mode
white-space
become a shorthand for text-wrap-mode
white-space
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! 🎉
Description
the spec has updated the syntax for
white-space
property, it is no longer a shorthand property fortext-wrap
property, but a shorthand property fortext-wrap-mode
propertythis happens in w3c/csswg-drafts@3a1eb85, as
text-wrap
property also become a shorthand property fortext-wrap-mode
property andtext-wrap-style
property, see also w3c/csswg-drafts#9102nowrap
value andbreak-spaces
value has been removed from spec, since they've defined in thewhite-space-collapse
andtext-wrap-mode
longhand propertiesthis happens in w3c/csswg-drafts@dfb236b (w3c/csswg-drafts#9227) and w3c/csswg-drafts@4717dbc
also fix the typo in syntax section in
text-wrap-mode
Motivation
Additional details
https://drafts.csswg.org/css-text-4/#propdef-white-space for spec
Related issues and pull requests
mdn/browser-compat-data#25572 for bcd change
mdn/data#878 for data change
mdn/interactive-examples#2884 for interactive example change