mirror of
https://github.com/servo/servo.git
synced 2025-06-23 08:34:42 +01:00
56 lines
No EOL
1.5 KiB
HTML
56 lines
No EOL
1.5 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: 250px;
|
|
height: 105px;
|
|
border: 1px solid black;
|
|
}
|
|
.bar {
|
|
position: absolute;
|
|
height: 20px;
|
|
background-color: green;
|
|
}
|
|
#line-1 {
|
|
top: 10px;
|
|
left: 65px;
|
|
width: 160px;
|
|
}
|
|
#line-2 {
|
|
top: 40px;
|
|
left: 80px;
|
|
width: 140px;
|
|
}
|
|
#line-3 {
|
|
top: 70px;
|
|
left: 95px;
|
|
width: 120px;
|
|
}
|
|
#triangle {
|
|
position: absolute;
|
|
top: 70px;
|
|
width: 100px;
|
|
height: 100px;
|
|
background-color: lightblue;
|
|
clip-path: polygon(50px 0px, 100px 100px, 0px 100px);
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<p>
|
|
The test passes if all there are three green horizontal bars to the right of the
|
|
triangle that are all inside the rectangle and there should be no green to the left
|
|
of the triangle. There should be no red.
|
|
</p>
|
|
<div id="container">
|
|
<div class="bar" id="line-1"></div>
|
|
<div class="bar" id="line-2"></div>
|
|
<div class="bar" id="line-3"></div>
|
|
</div>
|
|
<div id="triangle"></div>
|
|
|
|
</body></html> |