OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <meta charset="utf-8"> |
| 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"> |
| 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"> |
| 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"> |
| 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"> |
| 11 <style> |
| 12 #ref { |
| 13 border: 5px solid orange; |
| 14 font: 20px/1 Ahem; |
| 15 word-wrap: break-word; |
| 16 width: 200px; |
| 17 } |
| 18 #test { |
| 19 border: 5px solid blue; |
| 20 font: 20px/1 Ahem; |
| 21 word-wrap: break-word; |
| 22 white-space: nowrap; |
| 23 width: 200px; |
| 24 } |
| 25 </style> |
| 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> |
| 28 <p id="ref">FillerTextFillerTextFillerTextFillerText</p> |
| 29 <p id="test">FillerTextFillerTextFillerTextFillerText</p> |
| 30 </body> |
OLD | NEW |