- From: Javier Fernandez Garcia-Boente via GitHub <sysbot+gh@w3.org>
- Date: Mon, 17 Jun 2019 08:32:47 +0000
- To: public-css-archive@w3.org
javifernandez has just created a new issue for https://github.com/w3c/csswg-drafts:
== [css-text-3] Should preserved white space overflowing be visible ? ==
Lets consider the following test case, which defines a styled span with a sequence of white space character that, honoring the white-space: pre-wrap feature, it overflows the box's inline size:
```
<!DOCTYPE html>
<meta charset="utf-8">
<style>
.test {
font: 20px/1 Ahem;
border: 1px solid;
width: 2ch;
white-space: pre-wrap;
}
span { background: blue } /* If the space is removed instead of hanging, there will be no blue box*/
</style>
<div class="test">X<span>X  </span></div>
```
The following table shows how 3 of the main browsers render the test case defined above:
<table>
<tr><td>Firefox</td><td>Safari</td><td>Chrome</td></tr>
<tr><td><img src="https://user-images.githubusercontent.com/2230241/59589639-ad8da900-90ea-11e9-8f7c-bb1bd91b5660.png"/></td>
<td><img src="https://user-images.githubusercontent.com/2230241/59589639-ad8da900-90ea-11e9-8f7c-bb1bd91b5660.png"/></td>
<td><img src="https://user-images.githubusercontent.com/2230241/59589700-d6ae3980-90ea-11e9-9943-095aa878527b.png"/></td></tr>
</table>
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/4038 using your GitHub account
Received on Monday, 17 June 2019 08:32:52 UTC