Re: [csswg-drafts] [css-text][css-sizing] When to/not to include preserved trailing spaces (#3440)

Personally, I think that justifying pre-wrap text is weird, and that we should not optimize for that case. If we give up on that, we can go back to hanging only the spaces that overflow, which means:
* count the preserved spaces for max content
* don't count the preserved spaces for min content
* don't ignore the preserved spaces when center/right/justify aligning.
That does make justification a bit odd, but again, I don't think the use case is strong, and having consistency on the rest seems more useful.

If we do want to solve it for justification as well, a more complete but also more complicated answer could be that we allow-hang (i.e. only hang the spaces that would overflow) the pre-wrap spaces in general, but force-hang (i.e. hang all of them) when justifying. Since justification already has the distinction between the last and non-last lines, `text-align: justify` would force-hang on all lines but the last, and allow-hang on the last line, while `text-align: justify-all` would force-hang on all lines.



-- 
GitHub Notification of comment by frivoal
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/3440#issuecomment-488512352 using your GitHub account

Received on Thursday, 2 May 2019 00:13:42 UTC