OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <meta charset="utf-8"> |
| 3 <title>CSS Text Test: overflow-wrap: break-word</title> |
| 4 <link rel="author" title="Florian Rivoal" href="http://florian.rivoal.net/"> |
| 5 <link rel="help" href="https://drafts.csswg.org/css-text-3/#valdef-overflow-wrap
-break-word"> |
| 6 <meta name="flags" content="ahem"> |
| 7 <link rel="match" href="reference/overflow-wrap-break-word-001-ref.html"> |
| 8 <meta name="assert" content="sequences of nbsp characters that would cause overf
low are expected to be broken when overflow-wrap is break-word"> |
| 9 <style> |
| 10 div { |
| 11 position: relative; |
| 12 width: 100px; |
| 13 height: 100px; |
| 14 font-family: ahem; |
| 15 color: red; |
| 16 overflow-wrap: break-word; |
| 17 font-size: 25px; |
| 18 line-height: 27px; |
| 19 } |
| 20 div::after{ |
| 21 content: ""; |
| 22 position: absolute; |
| 23 top: 0; left: 0; bottom: 0; right: 0; |
| 24 background: green; |
| 25 } |
| 26 </style> |
| 27 <body> |
| 28 <p>Test passes if there is a <strong>filled green square</strong> and <strong>
no red</strong>.</p> |
| 29 <div> X</div> |
| 30 </body> |
OLD | NEW |