word-wrap-003

word-wrap - break-word (white space)

WeasyPrint

Reference (good) by WeasyPrint

Reference (good) by this browser

This browser

Flags
ahem
Assertion
The 'word-wrap' property set 'break-word' breaks line at white space

Source

 1 <!DOCTYPE html>
 2 <html><head><meta charset="utf-8">
 3 <title>CSS Text Test: word-wrap - break-word (white space)</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="reference/overflow-wrap-003-ref.htm" rel="match">
 8 <meta content="ahem" name="flags">
 9 <meta content="The 'word-wrap' property set 'break-word' breaks line at white space" name="assert">
10 <style>
11   #test {
12     border: 5px solid orange;
13     font: 20px/1 Ahem;
14     word-wrap: break-word;
15     width: 20em;
16   }
17 </style>
18 </head><body>
19   <p class="instructions">Test passes if the black box displayed in two rows within the orange box.</p>
20   <p id="test">FillerTextFillerText FillerTextFillerText</p>
21 
22 </body></html>