servo/tests/wpt/css-tests/css-backgrounds-3_dev/xhtml1print/box-shadow-outset-without-border-radius.xht

37 lines
No EOL
1.2 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 Backgrounds and Borders Test: box-shadow</title>
<link href="mailto:joy.xczhang@gmail.com" rel="author" title="Zhang Xiaochong" />
<link href="http://www.w3.org/TR/css3-background/#the-box-shadow" rel="help" />
<link href="reference/box-shadow-outset-without-border-radius.xht" rel="match" />
<meta content="box-shadow should show shadow." name="assert" />
<style type="text/css">
.container {
position: relative;
}
.container div {
position: absolute;
height: 150px;
width: 150px;
}
.container .test {
box-shadow: red 10px 10px;
left: 0;
top: 0;
}
.container .ref {
background-color: green;
left: 10px;
top: 10px;
}
</style>
</head>
<body>
<p>The test passes if there is a filled green square and no red.</p>
<div class="container">
<div class="test"></div>
<div class="ref"></div>
</div>
</body></html>