OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <head> | 2 <head> |
3 <style> | 3 <style> |
4 .composited { | 4 .composited { |
5 -webkit-transform: translatez(0); | 5 transform: translatez(0); |
6 } | 6 } |
7 | 7 |
8 .box { | 8 .box { |
9 width: 100px; | 9 width: 100px; |
10 height: 100px; | 10 height: 100px; |
11 } | 11 } |
12 | 12 |
13 .behind { | 13 .behind { |
14 position: absolute; | 14 position: absolute; |
15 z-index: 1; | 15 z-index: 1; |
16 top: 100px; | 16 top: 100px; |
17 left: 100px; | 17 left: 100px; |
18 background-color: blue; | 18 background-color: blue; |
19 } | 19 } |
20 | 20 |
21 .middle { | 21 .middle { |
22 position: absolute; | 22 position: absolute; |
23 z-index: 1; | 23 z-index: 1; |
24 top: 20px; | 24 top: 20px; |
25 left: 20px; | 25 left: 20px; |
26 background-color: lime; | 26 background-color: lime; |
27 -webkit-transform: rotate(45deg); | 27 transform: rotate(45deg); |
28 } | 28 } |
29 | 29 |
30 .top { | 30 .top { |
31 position: absolute; | 31 position: absolute; |
32 z-index: 1; | 32 z-index: 1; |
33 top: 180px; | 33 top: 180px; |
34 left: 180px; | 34 left: 180px; |
35 background-color: cyan; | 35 background-color: cyan; |
36 } | 36 } |
37 | 37 |
(...skipping 19 matching lines...) Expand all Loading... |
57 document.body.textContent = window.internals.layerTreeAsText(document, i
nternals.LAYER_TREE_INCLUDES_REPAINT_RECTS); | 57 document.body.textContent = window.internals.layerTreeAsText(document, i
nternals.LAYER_TREE_INCLUDES_REPAINT_RECTS); |
58 document.body.style.whiteSpace = 'pre'; | 58 document.body.style.whiteSpace = 'pre'; |
59 } | 59 } |
60 </script> | 60 </script> |
61 </head> | 61 </head> |
62 <body onload="runTest()"> | 62 <body onload="runTest()"> |
63 <div class="composited box behind"></div> | 63 <div class="composited box behind"></div> |
64 <div class="box middle"></div> | 64 <div class="box middle"></div> |
65 <div class="box top"></div> | 65 <div class="box top"></div> |
66 </body> | 66 </body> |
OLD | NEW |