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

Re: [csswg-drafts] [css-text] A single leading white-space should prevent word breaking honoring white-space: pre-wrap

From: Javier Fernandez Garcia-Boente via GitHub <sysbot+gh@w3.org>
Date: Fri, 13 Jul 2018 12:18:17 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-404816568-1531484297-sysbot+gh@w3.org>
> I can't find anywhere in the spec that the white-space processing phase should come after the wrapping. My understanding is that the white-space processing phase should come before it, because otherwise the browser wouldn't know whether this space would be removed or not, so it would not be able to determine whether the wrapping after the initial white space is needed.

I'm not sure whether we are under violent agreement here :) my point is that white-space processing should be first, indeed. That's why I think that in the cases we are evaluating, we should wrap the text so that the word is moved down to the next line. Then, only if it still overflows, we can apply additional breaking opportunities, like the ones provided by break-all. That's what I understand from the following sentence:

https://drafts.csswg.org/css-text-3/#line-breaking
> the UA must minimize the amount of content overflowing a line by wrapping the line at a soft wrap opportunity, if one exists.

-- 
GitHub Notification of comment by javifernandez
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/2907#issuecomment-404816568 using your GitHub account
Received on Friday, 13 July 2018 12:18:22 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 9 October 2019 08:16:45 UTC