mirror of
https://github.com/rn10950/RetroZilla.git
synced 2024-11-09 09:20:15 +01:00
24 lines
968 B
XML
24 lines
968 B
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; }
|
||
|
#hider { position: absolute; background: red; top: 0; height: 20px;
|
||
|
left: 0; width: 60px; z-index: 1; }
|
||
|
#cb { display: inline; position: relative; background: red; color: red; }
|
||
|
#test { position: absolute; top: 0; right: 0; left: 0; bottom: 0;
|
||
|
background: 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"></span>XXX</div>
|
||
|
</div>
|
||
|
</body>
|
||
|
</html>
|