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

> 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