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

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

From: David Baron via GitHub <sysbot+gh@w3.org>
Date: Wed, 06 Jul 2016 20:37:34 +0000
To: public-css-archive@w3.org
Message-ID: <issues.opened-164168086-1467837452-sysbot+gh@w3.org>
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

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