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: absolute; | 11 position: absolute; |
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: red; |
20 } | 20 } |
21 | 21 |
22 .layer { | 22 .layer { |
23 -webkit-transform:translateZ(0); | 23 transform:translateZ(0); |
24 background-color: green; | 24 background-color: green; |
25 } | 25 } |
26 | 26 |
27 #root { | 27 #root { |
28 width: 100%; | 28 width: 100%; |
29 height: 100%; | 29 height: 100%; |
30 /* root element should exactly cover red background */ | 30 /* root element should exactly cover red background */ |
31 background-color: white; | 31 background-color: white; |
32 } | 32 } |
33 | 33 |
(...skipping 14 matching lines...) Expand all Loading... |
48 window.addEventListener('load', doTest, false); | 48 window.addEventListener('load', doTest, false); |
49 </script> | 49 </script> |
50 <body> | 50 <body> |
51 <div id="root"></div> | 51 <div id="root"></div> |
52 <div class="positioned indicator"></div> | 52 <div class="positioned indicator"></div> |
53 <div class="positioned layer"></div> | 53 <div class="positioned layer"></div> |
54 | 54 |
55 <pre id="layertree"></pre> | 55 <pre id="layertree"></pre> |
56 </body> | 56 </body> |
57 </html> | 57 </html> |
OLD | NEW |