[csswg-drafts] [css-text] spaces before break in 'pre-wrap' text should allow combination of hanging and collapsing

dbaron has just created a new issue for 
https://github.com/w3c/csswg-drafts:

== [css-text] spaces before break in 'pre-wrap' text should allow 
combination of hanging and collapsing ==
[4.1.3. Phase II: Trimming and 
Positioning](https://drafts.csswg.org/css-text/#white-space-phase-2) 
in css-text-3 says:

<blockquote>If spaces or tabs at the end of a line are non-collapsible
 but have white-space set to pre-wrap the UA must either hang the 
white space or visually collapse their character advance widths such 
that they don’t take up space in the line.</blockquote>

Based on the discussion in [Mozilla Bug 1008019 - When a space 
overflows the width of a div, the previous word wraps as if it's 
attached to the div, with white-space: 
pre-wrap;](https://bugzilla.mozilla.org/show_bug.cgi?id=1008019), 
particularly starting at [comment 
34](https://bugzilla.mozilla.org/show_bug.cgi?id=1008019#c34), it is 
my understanding that:
 * Chromium uses a combination of the two behaviors
 * in that bug, we're likely to change Gecko to do the same

It seems like the spec should allow the combination of the behaviors 
(i.e., collapsing only the part that would extend past the end of the 
line).

Please view or discuss this issue at 
https://github.com/w3c/csswg-drafts/issues/277 using your GitHub 
account

Received on Wednesday, 6 July 2016 20:37:42 UTC