servo/tests/wpt/css-tests/css-shapes-1_dev/xhtml1/reference/shape-outside-linear-gradient-004-ref.xht

36 lines
No EOL
1 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>
<title>CSS Reference File</title>
<link href="mailto:stearns@adobe.com" rel="author" title="Alan Stearns" />
<style type="text/css">
.square {
display: inline-block;
width: 100px;
height: 100px;
line-height: 100px;
background-color: green;
}
#test {
position: absolute;
top: 70px;
width: 200px;
font-size: 0px;
}
#test &gt; .right {
margin-left: 100px;
}
</style>
</head>
<body>
<p>
The test passes if there are four green squares alternating left and right. There
should be no red.
</p>
<div id="test">
<div class="square"></div><br />
<div class="square right"></div><br />
<div class="square"></div><br />
<div class="square right"></div>
</div>
</body></html>