mirror of
https://github.com/servo/servo.git
synced 2025-06-24 00:54:32 +01:00
67 lines
No EOL
1.2 KiB
HTML
67 lines
No EOL
1.2 KiB
HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
|
<html xmlns="http://www.w3.org/1999/xhtml"><head>
|
|
<title>CSS Reftest Reference</title>
|
|
<link href="mailto:mibalan@adobe.com" rel="author" title="Mihai Balan" />
|
|
<style>
|
|
.region {
|
|
font-family: Ahem;
|
|
font-size: 20px;
|
|
line-height: 1em;
|
|
color: green;
|
|
}
|
|
|
|
.left,
|
|
.center,
|
|
.right {
|
|
position: absolute;
|
|
width: 100px;
|
|
height: 100px;
|
|
}
|
|
.left {
|
|
top: 0;
|
|
left: 0;
|
|
background-color: lightblue;
|
|
}
|
|
.center {
|
|
top: 25px;
|
|
left: 25px;
|
|
background-color: lightgreen;
|
|
}
|
|
.right {
|
|
top: 50px;
|
|
left: 50px;
|
|
background-color: yellow;
|
|
}
|
|
|
|
.back {
|
|
z-index: 1;
|
|
}
|
|
.middle {
|
|
z-index: 10;
|
|
}
|
|
.front {
|
|
z-index: 100;
|
|
}
|
|
|
|
ol {
|
|
margin-left: 150px;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<ol>
|
|
<li>You should see no red.</li>
|
|
<li>You should see three colored overlapping squares, from back to front: a blue square, a green square and a yellow square.</li>
|
|
</ol>
|
|
<div class="right front"></div>
|
|
<div class="left back"></div>
|
|
<div class="center middle region">
|
|
xxxxx<br />
|
|
xxxxx<br />
|
|
xxxxx<br />
|
|
xxxxx<br />
|
|
xxxxx
|
|
</div>
|
|
|
|
|
|
</body></html> |