mirror of
https://github.com/servo/servo.git
synced 2025-06-23 16:44:33 +01:00
41 lines
No EOL
1.1 KiB
HTML
41 lines
No EOL
1.1 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 Test reference</title>
|
|
<link href="mailto:rhauck@adobe.com" rel="author" title="Rebecca Hauck" />
|
|
<style type="text/css">
|
|
.block {
|
|
position: absolute;
|
|
top: 70px;
|
|
width: 60px;
|
|
height: 120px;
|
|
}
|
|
.green {
|
|
background-color: green;
|
|
}
|
|
.blue {
|
|
background-color: blue;
|
|
}
|
|
#rect-1 {
|
|
left: 20px;
|
|
}
|
|
#rect-2 {
|
|
left: 90px;
|
|
}
|
|
#rect-3 {
|
|
left: 190px;
|
|
}
|
|
#rect-4 {
|
|
left: 260px;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<p>The test passes if there are two green vertical rectangles on the left of two blue vertical rectangles.
|
|
There should be no red.</p>
|
|
<div id="rect-1" class="green block"></div>
|
|
<div id="rect-2" class="green block"></div>
|
|
<div id="rect-3" class="blue block"></div>
|
|
<div id="rect-4" class="blue block"></div>
|
|
|
|
|
|
</body></html> |