-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.html
65 lines (65 loc) · 1.84 KB
/
main.html
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
<!DOCTYPE html>
<html>
<head>
<title>el query</title>
<style type="text/css">
html, body {
height: 100%;
width: 100%;
margin: 0;
}
#testDivWrapper {
padding: 20px;
font-size: 1.8em;
}
#testDiv { /* [max-radius="1000"] */
height: 100%;
width: 100%;
position: relative;
background-color: blue;
max-width: 800px;
max-height: 100%;
height: 350px;
font-size: 0.5em;
}
.child {
height: 250px;
width: 700px;
max-width: 100%;
max-height: 100%;
background-color: tomato;
}
#testDiv .target {
display: block;
background-color: blue;
margin: 10;
height: 20px;
width: 20px;
font-size: inherit;
}
#testDiv[min-width~="600"] .target {
height: 40px;
width: 40px;
}
#testDiv[min-diagonal~="600"] .target {
background-color: blue;
}
#testDiv[min-aspect~="2"] {
background-color: yellow;
}
#testDiv[min-area~="150000"] .target {
background-color: yellow;
}
</style>
</head>
<body>
<div id="testDivWrapper">
<div id="testDiv">
<div class="child">
<div class="target"></div>
</div>
</div>
</div>
<script type="text/javascript" src="./elementQuery.js"></script>
</body>
</html>