blob: cfa7932325b940b0230d43daad9c7ba107ca3317 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
|
<!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: 262px;
height: 150px;
border: 1px solid black;
}
#failure-container {
}
#margin-line {
position: absolute;
top: 100px;
width: 263px;
border-bottom: 1px solid black;
}
.fail {
position: absolute;
height: 15px;
background-color: green;
z-index: -1;
}
#bar-1 {
top: 7px;
left: 2px;
width: 255px;
}
#bar-2 {
top: 37px;
left: 2px;
width: 255px;
}
#bar-3 {
top: 67px;
left: 22px;
width: 225px;
}
#bar-4 {
top: 97px;
left: 122px;
width: 135px;
}
#bar-5 {
top: 127px;
left: 152px;
width: 105px;
}
.triangle {
position: absolute;
width: 100px;
height: 100px;
background-color: lightblue;
clip-path: polygon(0% 50%, 50% 100%, 0 100%);;
}
#triangle-1 {
top: 90px;
margin-left: 2px;
}
#triangle-2 {
top: 120px;
margin-left: 102px;
}
</style>
</head>
<body>
<p>
The test passes if one green bar is inside the top rectangle, four green bars
are in the bottom rectangle, and none intersect the triangles. There should be no
red.
</p>
<div id="container">
<div id="bar-1" class="fail"></div>
<div id="bar-2" class="fail"></div>
<div id="bar-3" class="fail"></div>
<div id="bar-4" class="fail"></div>
<div id="bar-5" class="fail"></div>
</div>
<div id="margin-line"></div>
<div id="triangle-1" class="triangle"></div>
<div id="triangle-2" class="triangle"></div>
</body>
</html>
|