| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <style> | 4 <style> |
| 5 body { | 5 body { |
| 6 height: 5000px; | 6 height: 5000px; |
| 7 } | 7 } |
| 8 | 8 |
| 9 #indicator { | 9 #indicator { |
| 10 width: 256px; | 10 width: 256px; |
| 11 height: 256px; | 11 height: 256px; |
| 12 background-color: red; | 12 background-color: red; |
| 13 position: fixed; | 13 position: fixed; |
| 14 left: 100px; | 14 left: 100px; |
| 15 top: 100px; | 15 top: 100px; |
| 16 -webkit-transform:translateZ(0); | 16 transform:translateZ(0); |
| 17 } | 17 } |
| 18 | 18 |
| 19 #overlap { | 19 #overlap { |
| 20 width: 500px; | 20 width: 500px; |
| 21 height: 500px; | 21 height: 500px; |
| 22 background-color: green; | 22 background-color: green; |
| 23 position: fixed; | 23 position: fixed; |
| 24 left: 0px; | 24 left: 0px; |
| 25 top: 0px; | 25 top: 0px; |
| 26 } | 26 } |
| (...skipping 10 matching lines...) Expand all Loading... |
| 37 </script> | 37 </script> |
| 38 </head> | 38 </head> |
| 39 <body> | 39 <body> |
| 40 <!-- the red indicator should be covered by the green overlap element --> | 40 <!-- the red indicator should be covered by the green overlap element --> |
| 41 <div id="indicator"></div> | 41 <div id="indicator"></div> |
| 42 <div id="overlap"></div> | 42 <div id="overlap"></div> |
| 43 | 43 |
| 44 <pre id="layertree"></pre> | 44 <pre id="layertree"></pre> |
| 45 </body> | 45 </body> |
| 46 </html> | 46 </html> |
| OLD | NEW |