OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | 4 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> |
5 <style type="text/css" media="screen"> | 5 <style type="text/css" media="screen"> |
6 div { | 6 div { |
7 -webkit-box-sizing: border-box; | 7 -webkit-box-sizing: border-box; |
8 } | 8 } |
9 .reflected { | 9 .reflected { |
10 position: absolute; | 10 position: absolute; |
11 height: 120px; | 11 height: 120px; |
12 width: 120px; | 12 width: 120px; |
13 margin-bottom: 120px; | 13 margin-bottom: 120px; |
14 border: 1px solid black; | 14 border: 1px solid black; |
15 -webkit-box-reflect: below 2px; | 15 -webkit-box-reflect: below 2px; |
16 } | 16 } |
17 | 17 |
18 #inner { | 18 #inner { |
19 height: 100px; | 19 height: 100px; |
20 width: 100px; | 20 width: 100px; |
21 margin: 10px; | 21 margin: 10px; |
22 background-color: green; | 22 background-color: green; |
23 } | 23 } |
24 .composited { | 24 .composited { |
25 -webkit-transform: translateZ(0); | 25 transform: translateZ(0); |
26 } | 26 } |
27 | 27 |
28 .container { | 28 .container { |
29 position: relative; | 29 position: relative; |
30 } | 30 } |
31 #indicator { | 31 #indicator { |
32 position: absolute; | 32 position: absolute; |
33 top: 131px; | 33 top: 131px; |
34 left: 11px; | 34 left: 11px; |
35 height: 100px; | 35 height: 100px; |
(...skipping 21 matching lines...) Expand all Loading... |
57 <p>Test dynamically created compositing layer inside reflection. You should see
no red below.</p> | 57 <p>Test dynamically created compositing layer inside reflection. You should see
no red below.</p> |
58 <div class="container"> | 58 <div class="container"> |
59 <div id="indicator"></div> | 59 <div id="indicator"></div> |
60 <div class="reflected compositing"> | 60 <div class="reflected compositing"> |
61 <div id="inner"></div> | 61 <div id="inner"></div> |
62 </div> | 62 </div> |
63 </div> | 63 </div> |
64 | 64 |
65 </body> | 65 </body> |
66 </html> | 66 </html> |
OLD | NEW |