| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <head> | 2 <head> |
| 3 <script src="../../resources/run-after-display.js"></script> | 3 <script src="../../resources/run-after-display.js"></script> |
| 4 <style> | 4 <style> |
| 5 .composited { | 5 .composited { |
| 6 -webkit-transform: translatez(0); | 6 transform: translatez(0); |
| 7 } | 7 } |
| 8 | 8 |
| 9 .box { | 9 .box { |
| 10 width: 100px; | 10 width: 100px; |
| 11 height: 100px; | 11 height: 100px; |
| 12 } | 12 } |
| 13 | 13 |
| 14 .behind { | 14 .behind { |
| 15 position: absolute; | 15 position: absolute; |
| 16 z-index: 1; | 16 z-index: 1; |
| 17 top: 100px; | 17 top: 100px; |
| 18 left: 100px; | 18 left: 100px; |
| 19 background-color: blue; | 19 background-color: blue; |
| 20 } | 20 } |
| 21 | 21 |
| 22 .middle { | 22 .middle { |
| 23 position: absolute; | 23 position: absolute; |
| 24 z-index: 1; | 24 z-index: 1; |
| 25 top: 20px; | 25 top: 20px; |
| 26 left: 20px; | 26 left: 20px; |
| 27 background-color: lime; | 27 background-color: lime; |
| 28 -webkit-transform: rotate(22deg); | 28 transform: rotate(22deg); |
| 29 } | 29 } |
| 30 | 30 |
| 31 .top { | 31 .top { |
| 32 position: absolute; | 32 position: absolute; |
| 33 z-index: 1; | 33 z-index: 1; |
| 34 top: 180px; | 34 top: 180px; |
| 35 left: 180px; | 35 left: 180px; |
| 36 background-color: cyan; | 36 background-color: cyan; |
| 37 } | 37 } |
| 38 | 38 |
| 39 .smallbox { | 39 .smallbox { |
| 40 position: absolute; | 40 position: absolute; |
| 41 top: 25px; | 41 top: 25px; |
| 42 left: 20px; | 42 left: 20px; |
| 43 width: 50px; | 43 width: 50px; |
| 44 height: 50px; | 44 height: 50px; |
| 45 background-color: magenta; | 45 background-color: magenta; |
| 46 -webkit-transform: rotate(22deg); | 46 transform: rotate(22deg); |
| 47 } | 47 } |
| 48 | 48 |
| 49 div:hover { | 49 div:hover { |
| 50 background-color: green; | 50 background-color: green; |
| 51 } | 51 } |
| 52 | 52 |
| 53 .smallbox:hover { | 53 .smallbox:hover { |
| 54 background-color: lime; | 54 background-color: lime; |
| 55 } | 55 } |
| 56 | 56 |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 CASE 1, original layer tree | 121 CASE 1, original layer tree |
| 122 <pre id="Case1"></pre> | 122 <pre id="Case1"></pre> |
| 123 | 123 |
| 124 CASE 2, hovering over the outer div | 124 CASE 2, hovering over the outer div |
| 125 <pre id="Case2"></pre> | 125 <pre id="Case2"></pre> |
| 126 | 126 |
| 127 CASE 3, hovering over the inner div | 127 CASE 3, hovering over the inner div |
| 128 <pre id="Case3"></pre> | 128 <pre id="Case3"></pre> |
| 129 </div> | 129 </div> |
| 130 </body> | 130 </body> |
| OLD | NEW |