-
Notifications
You must be signed in to change notification settings - Fork 715
The definition of text-wrap:balance is overprescriptive #9111
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
Comments
@litherum would something like this work for you?
This would gain flexibility, potentially at the expense of some small reduction in interop. But that doesn't see overly important, as relying on an exact choice of line-breaking is already fragile for many other reasons. |
See also #8640 (comment) in which I argue that |
@frivoal I don't think that fix quite addresses the issue, and also the reason the spec focuses on the remaining space on the line is because addressing the line length itself doesn't work in the presence of floats. |
Should we simply replace "standard deviation" with "variation" in the original phrasing? |
Uh oh!
There was an error while loading. Please reload this page.
https://drafts.csswg.org/css-text-4/#valdef-text-wrap-balance
I'm specifically concerned about defining balancing using a rigorous definition of "standard deviation ... of the remaining space."
This is one particular definition of balanced, but there are quite a few different definitions that could be used with different tradeoffs. In particular, implementations will likely use a fast approximation of balancing, and won't actually use this specific mathematic formula from the spec. The spec should be relaxed to not prescribe any mathematically precise definition of "balanced."
The text was updated successfully, but these errors were encountered: