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