gecko/layout/html/tests/block/bugs/300816-08.xml

26 lines
1.1 KiB
XML

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>CSS 2.1 Test Suite: Positioned inline as absolute containing block</title>
<link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#containing-block-details"/>
<style type="text/css">
#testBlock { font-family: Ahem; font-size: 20px; line-height: 1; }
#testBlock { position: absolute; top: 100px; }
#hider { position: absolute; background: red; top: 40px; height: 20px;
left: 270px; width: 60px; z-index: 1; }
#cb { display: inline; position: relative; background: green; color: green;
padding-left: 100px; padding-right: 50px; padding-top: 20px;
padding-bottom: 40px; }
#test { position: absolute; left: 270px; bottom: 0; background: red;
color: green; z-index: 2; }
</style>
</head>
<body>
<p>There should be no red</p>
<div id="testBlock">
<div id="hider"></div>
<div id="cb"><span id="test">XXX</span>XXXXXXXXX</div>
</div>
</body>
</html>