-
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
pretty
value in the text-wrap
doc is not fully documented
#30073
Comments
I'm not used to reading W3C working drafts. What's a little confusing is the values for Not sure if
|
An update to the "# Values" section might look like: prettyThe browser will prioritize better layout over speed when making line break decisions. This value is intended for body text where the last line is expected to be shorter than the average, but may take more time to achieve optimal results. |
Yes, see also #29065 (comment). |
Just like for #29065, we need to wait a bit until both spec and implementation settle before documenting it. The |
Fixed by #30435 |
MDN URL
https://developer.mozilla.org/en-US/docs/Web/CSS/text-wrap
What specific section or headline is this issue about?
Syntax, Values, Formal Syntax
What information was incorrect, unhelpful, or incomplete?
The
pretty
value only shows up in the "Formal Syntax" section. Not mentioned in either "Syntax" or "Values".What did you expect to see?
Seems like
pretty
should also show up in the "Syntax" section if it's in the "Formal Syntax" section.It would also be helpful for
pretty
to be in the "Values" section which would explain whatpretty
does, (and ideally how it compares tobalance
)Do you have any supporting links, references, or citations?
pretty
is mentioned in the W3C working draft here:https://www.w3.org/TR/css-text-4/#valdef-text-wrap-style-pretty
Do you have anything more you want to share?
I also noticed the W3C working draft documents an
auto
value, which MDN doesn't mention. I would sayauto
should be added too; however, I'm noticing that Chrome's current implementation does not supportauto
as a valid value.New spec note - This is a very much WIP / new spec. The W3C working draft was updated as recently as October 20, 2023. The current MDN page may very well be based on an older version of the working draft.
MDN metadata
Page report details
en-us/web/css/text-wrap
The text was updated successfully, but these errors were encountered: