mirror of
https://github.com/servo/servo.git
synced 2025-06-23 08:34:42 +01:00
31 lines
No EOL
1.4 KiB
HTML
31 lines
No EOL
1.4 KiB
HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
|
<html xmlns="http://www.w3.org/1999/xhtml"><head><meta charset="utf-8" />
|
|
<title>CSS Text Test: overflow-wrap - break-word and white-space - nowrap</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="http://www.w3.org/TR/css-text-3/#white-space" rel="help" />
|
|
<link href="reference/overflow-wrap-002-ref.xht" rel="match" />
|
|
<meta content="ahem" name="flags" />
|
|
<meta content="Test checks that the 'overflow-wrap' property has effect if and only if the 'white-space' allows wrapping" name="assert" />
|
|
<style>
|
|
#ref {
|
|
border: 5px solid orange;
|
|
font: 20px/1 Ahem;
|
|
overflow-wrap: break-word;
|
|
width: 200px;
|
|
}
|
|
#test {
|
|
border: 5px solid blue;
|
|
font: 20px/1 Ahem;
|
|
overflow-wrap: break-word;
|
|
white-space: nowrap;
|
|
width: 200px;
|
|
}
|
|
</style>
|
|
</head><body>
|
|
<p class="instructions">Test passes if the black box overflows the blue border box, but fits within the orange border box.</p>
|
|
<p id="ref">FillerTextFillerTextFillerTextFillerText</p>
|
|
<p id="test">FillerTextFillerTextFillerTextFillerText</p>
|
|
|
|
</body></html> |