blob: ac849b271a2ee058a20fcc1cf703f1ca64ba2f15 [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<title>CSS Reference File</title>
<link rel="author" title="Rebecca Hauck" href="mailto:rhauck@adobe.com"/>
<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;
-webkit-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 id="bar-1" class="bar"></div>
<div id="bar-2" class="bar"></div>
<div id="bar-3" class="bar"></div>
<div id="bar-4" class="bar"></div>
</div>
<div id="margin-line"></div>
<div id="triangle"></div>
</body>
</html>