16 lines
576 B
HTML
16 lines
576 B
HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
|
|
<html>
|
|
<head>
|
|
<title>CSS Test Reference Result: Inheriting 'top' changes from abspos grandparent</title>
|
|
<style type="text/css">
|
|
.testDiv { position: relative; width: 100px; height: 100px; }
|
|
#green { top: 100px; background: green; }
|
|
body > p { position: absolute; font-size: medium; }
|
|
body { font-size: 0; line-height: 0; position: relative; }
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<p>There should be no red.</p>
|
|
<div id="green" class="testDiv"></div>
|
|
</body>
|
|
</html> |