servo/tests/wpt/css-tests/css-multicol-1_dev/xhtml1/multicol-basic-004.xht

63 lines
No EOL
1.7 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"><!-- Submitted from TestTWF Paris --><head>
<meta charset="utf-8" />
<title>CSS Test: Multi-column element via column-width: [width]</title>
<link href="mailto:info@anselm-hannemann.com" rel="author" title="Anselm Hannemann" />
<link href="mailto:howcome@opera.com" rel="author" title="Håkon Wium Lie" />
<link href="http://www.w3.org/TR/css3-multicol/#columns" rel="help" />
<link href="reference/multicol-basic-ref.xht" rel="match" />
<meta content="ahem" name="flags" />
<link href="http://fantasai.inkedblade.net/contact" rel="reviewer" title="Elika J Etemad" />
<style type="text/css">
.multicol-wrapper&gt;*{
font-family: Ahem;
}
div.multicol-wrapper{
border: thin solid black;
display: inline-block;
margin: 1em auto;
width: 360px;
}
.multicol-basic-ref{
background: yellow;
width: 360px;
column-width: 120px;
column-gap: 0;
column-rule: none;
}
.multicol-basic-ref-item{
background: #000;
}
.item-1{
background: purple;
color: purple;
}
.item-2{
background: orange;
color: orange;
}
.item-3{
background: blue;
color: blue;
}
</style>
</head>
<body>
<p>Test passes if there are three vertical stripes in the yellow box below: 1st purple, 2nd orange, 3rd blue.</p>
<div class="multicol-wrapper">
<div class="multicol-basic-ref">
<span class="multicol-basic-ref-item item-1">XXXX XXXX XXXX XXXX XXXX XXXX XXXX</span>
<span class="multicol-basic-ref-item item-2">XXXX XXXX XXXX XXXX XXXX XXXX XXXX</span>
<span class="multicol-basic-ref-item item-3">XXXX XXXX XXXX XXXX XXXX XXXX XXXX</span>
</div>
</div>
</body></html>