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