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

The spec currently specifies that trailing spaces are hung (like hanging-punctuation) if `pre-wrap` is specified. This is because UAs don't want to wrap the last word down just because there are spaces following it that overflow the containing block. (Spaces are not allowed to hang for `pre`; they are measured just like any other characters.)

Per spec, "hanging" the spaces means they are excluded from the line box--they can overflow it, and therefore are ignored when justifying or end-aligning the text, and are not considered in intrinsic sizing.

If a different behavior is wanted, then we'd have to spec something explicitly different.

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

Received on Tuesday, 18 December 2018 08:09:17 UTC