[csswg-drafts] [css-text-3] Line breaking opportunities at the boundary of a white-space:pre element

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

== [css-text-3] Line breaking opportunities at the boundary of a 
white-space:pre element ==
Browsers differ in behavior when faced with the following, if the 
line-end would normally fall between お and か (i.e. at the boundary of 
the `span`):

`<p>あいうえお<span style="white-space:pre">か</span>きくけこ</p>`

Live example here: http://jsbin.com/bedumox/edit?html,css,output

Firefox and Edge (and presto) allow the break between お and か. Safari 
and Chrome don't. Language tagging and the switching the `word-break` 
property between `auto` and `break-all` does not make any difference.

I suspect the Firefox / Edge behavior is correct, and the the Chrome /
 Safari behavior is a side effect of another bug of theirs that 
suppresses break opportunities are element boundaries [1][2], but I 
did not manage to find a justification either way in the spec for the 
case I am discussing here.

[1] https://bugs.chromium.org/p/chromium/issues/detail?id=282134
[2] https://bugs.webkit.org/show_bug.cgi?id=158771

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

Received on Wednesday, 15 June 2016 02:45:26 UTC