| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <meta charset="utf-8"> | 2 <meta charset="utf-8"> |
| 3 <title>CSS Text Test: word-wrap - break-word and white-space - nowrap</title> | 3 <title>CSS Text Test: word-wrap - break-word and white-space - nowrap</title> |
| 4 <link rel="author" title="Intel" href="http://www.intel.com"> | 4 <link rel="author" title="Intel" href="http://www.intel.com"> |
| 5 <link rel="author" title="Shiyou Tan" href="mailto:shiyoux.tan@intel.com"> | 5 <link rel="author" title="Shiyou Tan" href="mailto:shiyoux.tan@intel.com"> |
| 6 <link rel="help" title="6.2. Overflow Wrapping: the 'word-wrap'/'overflow-wrap'
property" href="http://www.w3.org/TR/css-text-3/#overflow-wrap"> | 6 <link rel="help" title="6.2. Overflow Wrapping: the 'word-wrap'/'overflow-wrap'
property" href="http://www.w3.org/TR/css-text-3/#overflow-wrap"> |
| 7 <link rel="help" href="http://www.w3.org/TR/css-text-3/#white-space"> | 7 <link rel="help" href="http://www.w3.org/TR/css-text-3/#white-space"> |
| 8 <link rel="match" href="overflow-wrap-002-ref.html"> | 8 <link rel="match" href="overflow-wrap-002-ref.html"> |
| 9 <meta name="flags" content="ahem"> | 9 <meta name="flags" content="ahem"> |
| 10 <meta name="assert" content="Test checks that the 'word-wrap' property has effec
t if and only if the 'white-space' allows wrapping"> | 10 <meta name="assert" content="Test checks that the 'word-wrap' property has effec
t if and only if the 'white-space' allows wrapping"> |
| 11 <style> | 11 <style> |
| 12 #ref { | 12 #ref { |
| 13 border: 5px solid orange; | 13 border: 5px solid orange; |
| 14 font: 20px/1 Ahem; | 14 font: 20px/1 Ahem; |
| 15 word-wrap: break-word; | 15 word-wrap: break-word; |
| 16 width: 200px; | 16 width: 200px; |
| 17 } | 17 } |
| 18 #test { | 18 #test { |
| 19 border: 5px solid blue; | 19 border: 5px solid blue; |
| 20 font: 20px/1 Ahem; | 20 font: 20px/1 Ahem; |
| 21 word-wrap: break-word; | 21 word-wrap: break-word; |
| 22 white-space: nowrap; | 22 white-space: nowrap; |
| 23 width: 200px; | 23 width: 200px; |
| 24 } | 24 } |
| 25 </style> | 25 </style> |
| 26 <body> | 26 <body> |
| 27 <p class="instructions" style="display:none">Test passes if the black box over
flows the blue border box, but fits within the orange border box.</p> | 27 <p class="instructions">Test passes if the black box overflows the blue border
box, but fits within the orange border box.</p> |
| 28 <p id="ref">FillerTextFillerTextFillerTextFillerText</p> | 28 <p id="ref">FillerTextFillerTextFillerTextFillerText</p> |
| 29 <p id="test">FillerTextFillerTextFillerTextFillerText</p> | 29 <p id="test">FillerTextFillerTextFillerTextFillerText</p> |
| 30 </body> | 30 </body> |
| OLD | NEW |