| 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 .pre { | 11 .pre { |
| 12 white-space: pre; | 12 white-space: pre; |
| 13 } | 13 } |
| 14 </style> | 14 </style> |
| 15 This test passes if there is a horizontal green line below. It tests that: | 15 This test passes if there is a horizontal green line below. It tests that: |
| 16 <ul> | 16 <ul> |
| 17 <li>a block setting white-space:pre does not affect the whitespace-collapsing | 17 <li>a block setting white-space:pre does not affect the whitespace-collapsing |
| 18 behavior of an inline setting white-space:nowrap</li> | 18 behavior of an inline setting white-space:nowrap</li> |
| 19 <li>an inline setting white-space:normal or nowrap does not allow wrapping | 19 <li>an inline setting white-space:normal or nowrap does not allow wrapping |
| 20 when nested in a block that sets white-space:pre</li> | 20 when nested in a block that sets white-space:pre</li> |
| 21 </ul> | 21 </ul> |
| 22 <div class="test pre"><span>x xx</span></div> | 22 <div class="test pre"><span>x xx</span></div> |
| OLD | NEW |