W3C home > Mailing lists > Public > public-css-archive@w3.org > December 2018

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

From: fantasai via GitHub <sysbot+gh@w3.org>
Date: Tue, 18 Dec 2018 08:09:16 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-448132284-1545120555-sysbot+gh@w3.org>
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

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:41:41 UTC