blob: 01299d25842d43ed04ff469c51d6d2e29e296f68 [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
<html>
<head>
<title>CSS 2.1 Test Suite: Containing block for absolute positioning</title>
<link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#containing-block-details">
<style type="text/css">
html { margin: 0; padding: 0; width: 100%; height: 100%; position: relative; }
body { background: red; margin: 100px 20%; } /* background propagates up to html and then canvas */
div { background: white; color: green; position: absolute; top: 0; right: 0; bottom: 0; left: 0; }
</style>
</head>
<body>
<div>
There should be no red on this page.
</div>
</body>
</html>