Merged
Conversation
Contributor
|
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-wrapwhite-space become a shorthand for text-wrap-mode
This was referenced Jan 4, 2025
white-space become a shorthand for text-wrap-modewhite-space
skyclouds2001
commented
Jan 4, 2025
estelle
approved these changes
Jan 6, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
the spec has updated the syntax for
white-spaceproperty, it is no longer a shorthand property fortext-wrapproperty, but a shorthand property fortext-wrap-modepropertythis happens in w3c/csswg-drafts@3a1eb85, as
text-wrapproperty also become a shorthand property fortext-wrap-modeproperty andtext-wrap-styleproperty, see also w3c/csswg-drafts#9102nowrapvalue andbreak-spacesvalue has been removed from spec, since they've defined in thewhite-space-collapseandtext-wrap-modelonghand 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-modeMotivation
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