OLD | NEW |
1 <!DOCTYPE> | 1 <!DOCTYPE> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <title>Test position of foreground layer when clipping</title> | 4 <title>Test position of foreground layer when clipping</title> |
5 <style type="text/css" media="screen"> | 5 <style type="text/css" media="screen"> |
6 .box { | 6 .box { |
7 position: relative; | 7 position: relative; |
8 display: inline-block; | 8 display: inline-block; |
9 margin: 60px; | 9 margin: 60px; |
10 width: 200px; | 10 width: 200px; |
11 height: 200px; | 11 height: 200px; |
12 border:10px solid black; | 12 border:10px solid black; |
13 color: blue; | 13 color: blue; |
14 padding: 20px; | 14 padding: 20px; |
15 -webkit-box-sizing: border-box; | 15 -webkit-box-sizing: border-box; |
16 -webkit-box-shadow: black 0 0 10px; | 16 -webkit-box-shadow: black 0 0 10px; |
17 background-color:rgba(255, 255, 255, 0.8); | 17 background-color:rgba(255, 255, 255, 0.8); |
18 font-size: 220%; | 18 font-size: 220%; |
19 font-weight: bold; | 19 font-weight: bold; |
20 -webkit-transform: translateZ(0); | 20 transform: translateZ(0); |
21 } | 21 } |
22 | 22 |
23 .child { | 23 .child { |
24 position: absolute; | 24 position: absolute; |
25 border:2px solid black; | 25 border:2px solid black; |
26 width: 150px; | 26 width: 150px; |
27 height: 150px; | 27 height: 150px; |
28 padding: 20px; | 28 padding: 20px; |
29 color: gray; | 29 color: gray; |
30 -webkit-box-sizing: border-box; | 30 -webkit-box-sizing: border-box; |
31 -webkit-transform: translateZ(0); | 31 transform: translateZ(0); |
32 } | 32 } |
33 | 33 |
34 .child > .child { | 34 .child > .child { |
35 height: 100px; | 35 height: 100px; |
36 width: 100px; | 36 width: 100px; |
37 top: 80px; | 37 top: 80px; |
38 background-color: green; | 38 background-color: green; |
39 font-size: 50%; | 39 font-size: 50%; |
40 } | 40 } |
41 | 41 |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 Behind behind | 79 Behind behind |
80 </div> | 80 </div> |
81 </div> | 81 </div> |
82 <div class="positive child"> | 82 <div class="positive child"> |
83 In Front | 83 In Front |
84 </div> | 84 </div> |
85 </div> | 85 </div> |
86 | 86 |
87 </body> | 87 </body> |
88 </html> | 88 </html> |
OLD | NEW |