Re: [csswg-drafts] [css-text-3] When is allowed to break before the first preserved white-space after a word ? (#3701)

> Is the content of this table correct, according to the last draft of the spec ?

Yes, that matches my own understanding.

> Are all these cases correctly rendered ?

All cases assume `white-space: break-spaces` ? In that case, then I think it has bugs. I would expect this instead (i.e. case 0 to 4 are different, case 5 to 8 are the same):

<table style='font-family: monospace'>
<tr><td>case</td><td>word-break</td><td>overflow-wrap</td><td>line-break</td><td>result</td></tr>
<tr>
   <td>0</td><td>normal</td><td>normal</td><td>auto</td>
   <td>X<br>XX X</td>
</tr>
<tr>
   <td>1</td><td>normal</td><td>break-word</td><td>auto</td>
   <td>X<br>XX X</td>
</tr>
<tr>
   <td>2</td><td>normal</td><td>anywhere</td><td>auto</td>
   <td>X<br>XX X</td>
</tr>
<tr>
   <td>3</td><td>break-all</td><td>normal</td><td>auto</td>
   <td>X X<br>X X</td>
</tr>
<tr>
   <td>4</td><td>break-all</td><td>break-word</td><td>auto</td>
   <td>X X<br>X X</td>
</tr>
<tr>
   <td>5</td><td>normal</td><td>normal</td><td>anywhere</td>
   <td><img src="https://user-images.githubusercontent.com/2230241/53671834-6802b880-3c80-11e9-891c-7f6c74f4b6af.png"/></td>
</tr>
<tr>
   <td>6</td><td>break-all</td><td>normal</td><td>anywhere</td>
   <td><img src="https://user-images.githubusercontent.com/2230241/53671834-6802b880-3c80-11e9-891c-7f6c74f4b6af.png"/></td>
</tr>
<tr>
   <td>7</td><td>normal</td><td>break-word</td><td>anywhere</td>
   <td><img src="https://user-images.githubusercontent.com/2230241/53671834-6802b880-3c80-11e9-891c-7f6c74f4b6af.png"/></td>
</tr>
<tr>
   <td>8</td><td>break-all</td><td>break-word</td><td>anywhere</td>
   <td><img src="https://user-images.githubusercontent.com/2230241/53671834-6802b880-3c80-11e9-891c-7f6c74f4b6af.png"/></td>
</tr>
</table>

@fantasai, do you agree?

-- 
GitHub Notification of comment by frivoal
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/3701#issuecomment-483900138 using your GitHub account

Received on Wednesday, 17 April 2019 01:16:40 UTC