servo/tests/wpt/css-tests/css-text-3_dev/html/word-break-004.htm

22 lines
No EOL
826 B
HTML

<!DOCTYPE html>
<html><head><meta charset="utf-8">
<title>CSS Text Test: word-break - normal keyword value - Chinese words break</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/#word-break" rel="help">
<meta content="" name="flags">
<meta content="Check that 'word-break' with 'normal' keyword value implies to words break after word, including Chinese words." name="assert">
<style>
div {
border: 2px black solid;
color: blue;
width: 100px;
word-break: normal;
}
</style>
</head><body>
<p>Test passes if all the Chinese words below are inside the box and break normally.</p>
<div>这些文字会自动换行,但不会超出黑色框。</div>
</body></html>