Source code

Revision control

Copy as Markdown

Other Tools

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<head>
<title>CSS Reftest Reference</title>
<link rel="author" title="Apple Inc." href="http://www.apple.com/"/>
<style type="text/css"><![CDATA[
div {
position: relative;
}
div p {
position: absolute;
top: 0;
left: 0;
display: block;
}
#ref {
width: 100px;
height: 100px;
background-color: green;
}
]]></style>
</head>
<body>
<p>You should see a green box. There should be no red.</p>
<div>
<p id="ref"></p>
</div>
</body>
</html>