servo/tests/wpt/css-tests/css-text-3_dev/html/word-wrap-003.htm

22 lines
No EOL
919 B
HTML

<!DOCTYPE html>
<html><head><meta charset="utf-8">
<title>CSS Text Test: word-wrap - break-word (white space)</title>
<link href="http://www.intel.com" rel="author" title="Intel">
<link href="mailto:shiyoux.tan@intel.com" rel="author" title="Shiyou Tan">
<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">
<link href="reference/overflow-wrap-003-ref.htm" rel="match">
<meta content="ahem" name="flags">
<meta content="The 'word-wrap' property set 'break-word' breaks line at white space" name="assert">
<style>
#test {
border: 5px solid orange;
font: 20px/1 Ahem;
word-wrap: break-word;
width: 20em;
}
</style>
</head><body>
<p class="instructions">Test passes if the black box displayed in two rows within the orange box.</p>
<p id="test">FillerTextFillerText FillerTextFillerText</p>
</body></html>