blob: 5774d353e6e78e0672b2edc2726225f2207c451a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
<!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>
<title>CSS Multi-column Layout Test: column-width (ch units)</title>
<link rel="author" title="Opera Software ASA" href="http://www.opera.com/"/>
<link rel="help" href="https://www.w3.org/TR/css-multicol-1/#the-number-and-width-of-columns"/>
<link rel="match" href="multicol-width-ch-ref.xht"/>
<meta name="assert" value="Test that the ch unit can be used as a value for column-width."/>
<style type="text/css"><![CDATA[
.multicol {
font: 1em monospace;
width: 69ch;
column-width: 13ch;
column-gap: 1ch;
background: yellow;
}
]]></style>
</head>
<body>
<p>Test passes if we have five columns with four lines in each. The final column should contain the words: million, billion, trillion.</p>
<div class="multicol">
one two three four
five six seven eight
nineten eleven twelve
thirtn fourtnfiftn sixtn
seventn eightn ninetn twenty
hundred thousand million billion
trillion
</div>
</body>
</html>
|