mirror of
https://github.com/servo/servo.git
synced 2025-06-23 08:34:42 +01:00
71 lines
No EOL
1.8 KiB
HTML
71 lines
No EOL
1.8 KiB
HTML
<!DOCTYPE html>
|
|
<html><head>
|
|
<title>CSS Reference File</title>
|
|
<link href="mailto:rhauck@adobe.com" rel="author" title="Rebecca Hauck">
|
|
<style type="text/css">
|
|
#container {
|
|
position: absolute;
|
|
top: 70px;
|
|
width: 260px;
|
|
height: 120px;
|
|
font-family: Ahem;
|
|
font-size: 20px;
|
|
line-height: 1.5em;
|
|
border: 1px solid black;
|
|
padding-left: 2px;
|
|
}
|
|
#margin-line {
|
|
position: absolute;
|
|
top: 100px;
|
|
width: 263px;
|
|
border-bottom: 1px solid black;
|
|
}
|
|
.bar {
|
|
position: absolute;
|
|
height: 20px;
|
|
background-color: green;
|
|
}
|
|
#bar-1 {
|
|
top: 5px;
|
|
width: 240px;
|
|
}
|
|
#bar-2 {
|
|
top: 35px;
|
|
width: 240px;
|
|
}
|
|
#bar-3 {
|
|
top: 65px;
|
|
left: 22px;
|
|
width: 220px;
|
|
}
|
|
#bar-4 {
|
|
top: 95px;
|
|
left: 52px;
|
|
width: 200px;
|
|
}
|
|
#triangle {
|
|
position: absolute;
|
|
top: 90px;
|
|
width: 100px;
|
|
height: 100px;
|
|
background-color: lightblue;
|
|
margin-left: 2px;
|
|
clip-path: polygon(0% 50%, 50% 100%, 0 100%);;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<p>
|
|
The test passes if one green bar is inside the top rectangle, three green bars
|
|
are in the bottom rectangle, and none intersect the triangle. There should be no red.
|
|
</p>
|
|
<div id="container">
|
|
<div class="bar" id="bar-1"></div>
|
|
<div class="bar" id="bar-2"></div>
|
|
<div class="bar" id="bar-3"></div>
|
|
<div class="bar" id="bar-4"></div>
|
|
</div>
|
|
<div id="margin-line"></div>
|
|
<div id="triangle"></div>
|
|
|
|
</body></html> |