OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <style> |
| 3 #container { |
| 4 width: 40px; |
| 5 border: 1px solid; |
| 6 } |
| 7 .text { |
| 8 white-space: nowrap; |
| 9 } |
| 10 </style> |
| 11 <p>crbug.com/597193: Trailing space occurring before a no-wrap span should not f
ool it into thinking it can break. There should be three separate lines with the
word 'Text' below.</p> |
| 12 <p id="container">Text <span id="s1" class="text"></span> Text</p> |
| 13 <script> |
| 14 var s1 = document.getElementById('s1'); |
| 15 s1.appendChild(document.createTextNode("T")); |
| 16 s1.appendChild(document.createTextNode("e")); |
| 17 s1.appendChild(document.createTextNode("x")); |
| 18 s1.appendChild(document.createTextNode("t")); |
| 19 if (window.testRunner) |
| 20 testRunner.dumpAsText(); |
| 21 </script> |
OLD | NEW |