OLD | NEW |
---|---|
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <style> | 2 <style> |
3 div { | 3 div { |
4 font: 1em/1 Ahem; | 4 font: 1em/1 Ahem; |
5 width: 1em; | 5 width: 1em; |
6 } | 6 } |
7 span { | 7 span { |
8 color: lime; | 8 color: lime; |
9 background: lime; | 9 background: lime; |
10 } | 10 } |
11 .normal { | 11 .normal { |
12 white-space: normal; | 12 white-space: normal; |
13 } | 13 } |
14 .pre { | 14 .pre { |
15 white-space: pre; | 15 white-space: pre; |
16 } | 16 } |
17 .nowrap { | 17 .nowrap { |
18 white-space: nowrap; | 18 white-space: nowrap; |
19 } | 19 } |
20 </style> | 20 </style> |
21 This test passes if there is a green square below. It tests that whitespace at t he end of | 21 This test passes if there is a green square below. It tests that whitespaces at the end of |
22 an inline setting white-space:nowrap can be collapsed with a break at the start of the | 22 an inline setting white-space:nowrap can be collapsed with a break at the start of the |
23 next inline.<br> | 23 next inline.<br> |
24 <div class="pre"><span class="nowrap">xx </span><span class="normal"> xx</span>< /div> | 24 <div class="pre"><span class="nowrap">xx </span><span class="normal"> xx</span> </div> |
OLD | NEW |