OLD | NEW |
1 <html> | 1 <html> |
2 <head> | 2 <head> |
3 <style> | 3 <style> |
4 body { | 4 body { |
5 direction: rtl; | 5 direction: rtl; |
6 margin: 0px; | 6 margin: 0px; |
7 background-color: red; | 7 background-color: red; |
8 } | 8 } |
9 | 9 |
10 .positioned { | 10 .positioned { |
11 position: fixed; | 11 position: fixed; |
12 top: 50px; | 12 top: 50px; |
13 left: 50px; | 13 left: 50px; |
14 width: 100px; | 14 width: 100px; |
15 height: 100px; | 15 height: 100px; |
16 } | 16 } |
17 | 17 |
18 .indicator { | 18 .indicator { |
19 background-color: red; | 19 background-color: rgba(255, 0, 0, 0.99); |
20 } | 20 } |
21 | 21 |
22 .layer { | 22 .layer { |
23 transform:translateZ(0); | |
24 background-color: green; | 23 background-color: green; |
25 } | 24 } |
26 | 25 |
27 #root { | 26 #root { |
28 width: 1000px; | 27 width: 1000px; |
29 height: 1000px; | 28 height: 1000px; |
30 background-color: white; | 29 background-color: white; |
31 } | 30 } |
32 | 31 |
33 #layertree { | 32 #layertree { |
(...skipping 13 matching lines...) Expand all Loading... |
47 window.addEventListener('load', doTest, false); | 46 window.addEventListener('load', doTest, false); |
48 </script> | 47 </script> |
49 <body> | 48 <body> |
50 <div id="root"></div> | 49 <div id="root"></div> |
51 <div class="positioned indicator"></div> | 50 <div class="positioned indicator"></div> |
52 <div class="positioned layer"></div> | 51 <div class="positioned layer"></div> |
53 | 52 |
54 <pre id="layertree"></pre> | 53 <pre id="layertree"></pre> |
55 </body> | 54 </body> |
56 </html> | 55 </html> |
OLD | NEW |