-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path15_Stacking_context_scale.html
82 lines (80 loc) · 1.77 KB
/
15_Stacking_context_scale.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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
<!doctype html>
<html>
<head>
<title>Stacking context - scale</title>
<script src="importmap.js"></script>
<script type="module" src="test-harness.js"></script>
<style type="text/css">
div {
padding: 10px;
}
</style>
</head>
<body>
<div
id="test-container"
style="all: initial"
data-expected="div1,div2,div2.1,div1.1"
>
<div
id="div1"
style="
border: 1px dashed #669966;
background-color: #ccffcc;
height: 80px;
"
>
<strong>DIV #1</strong><br />
<div
id="div1.1"
style="
opacity: 0.8;
position: absolute;
z-index: 2;
width: 150px;
height: 250px;
top: 20px;
left: 250px;
border: 1px dashed #990000;
background-color: #ffdddd;
"
>
<strong>DIV #1.1</strong><br />
<code>
position: absolute;<br />
z-index: 2;
</code>
</div>
</div>
<div
id="div2"
style="
scale: 90%;
border: 1px dashed #669966;
background-color: #ccffcc;
height: 200px;
"
>
<strong>DIV #2</strong><br />
<code>scale: 90%;</code>
<div
id="div2.1"
style="
position: relative;
top: 10px;
z-index: 10;
border: 1px dashed #000099;
background-color: #ddddff;
height: 80px;
"
>
<strong>DIV #2.1</strong><br />
<code>
z-index: 10;<br />
position: relative;
</code>
</div>
</div>
</div>
</body>
</html>