mirror of
https://github.com/servo/servo.git
synced 2025-06-24 17:14:33 +01:00
62 lines
No EOL
1.2 KiB
HTML
62 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 {
|
|
width: 100px;
|
|
height: 100px;
|
|
font-family: Ahem;
|
|
font-size: 20px;
|
|
line-height: 1em;
|
|
color: green;
|
|
}
|
|
.region p{
|
|
height: 50%;
|
|
background-color: red;
|
|
}
|
|
|
|
#container {
|
|
position: relative;
|
|
opacity: .7;
|
|
}
|
|
#container > div {
|
|
position: absolute;
|
|
width: 100px;
|
|
height: 100px;
|
|
}
|
|
.left {
|
|
top: 0;
|
|
left: 0;
|
|
background-color: lightgreen;
|
|
}
|
|
.center {
|
|
top: 25px;
|
|
left: 25px;
|
|
background-color: lightblue;
|
|
}
|
|
.right {
|
|
top: 50px;
|
|
left: 50px;
|
|
background-color: yellow;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<ol>
|
|
<li>You should see no red.</li>
|
|
<li>You should see three colored overlapping squares, from back to front: a green square, a blue square and a yellow square.</li>
|
|
</ol>
|
|
<div id="container">
|
|
<div class="left region">
|
|
xxxxx<br />
|
|
xxxxx<br />
|
|
xxxxx<br />
|
|
xxxxx<br />
|
|
xxxxx
|
|
</div>
|
|
<div class="center"></div>
|
|
<div class="right"></div>
|
|
</div>
|
|
|
|
</body></html> |