| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <script src="../resources/run-after-display.js"></script> | 4 <script src="../resources/run-after-display.js"></script> |
| 5 <style> | 5 <style> |
| 6 #indicator { | 6 #indicator { |
| 7 position: absolute; | 7 position: absolute; |
| 8 top: 0px; | 8 top: 0px; |
| 9 left: 0px; | 9 left: 0px; |
| 10 height: 100px; | 10 height: 100px; |
| 11 width: 100px; | 11 width: 100px; |
| 12 background-color: red; | 12 background-color: red; |
| 13 } | 13 } |
| 14 #clipper { | 14 #clipper { |
| 15 -webkit-transform:translateZ(0); | 15 transform:translateZ(0); |
| 16 position: absolute; | 16 position: absolute; |
| 17 top: 0px; | 17 top: 0px; |
| 18 left: 0px; | 18 left: 0px; |
| 19 height: 100px; | 19 height: 100px; |
| 20 width: 100px; | 20 width: 100px; |
| 21 background-color: green; | 21 background-color: green; |
| 22 clip: rect(25px, 75px, 75px, 25px); | 22 clip: rect(25px, 75px, 75px, 25px); |
| 23 } | 23 } |
| 24 </style> | 24 </style> |
| 25 <script> | 25 <script> |
| (...skipping 13 matching lines...) Expand all Loading... |
| 39 }); | 39 }); |
| 40 } | 40 } |
| 41 window.addEventListener("load", doTest, false); | 41 window.addEventListener("load", doTest, false); |
| 42 </script> | 42 </script> |
| 43 </head> | 43 </head> |
| 44 <body> | 44 <body> |
| 45 <div id="indicator"></div> | 45 <div id="indicator"></div> |
| 46 <div id="clipper"></div> | 46 <div id="clipper"></div> |
| 47 </body> | 47 </body> |
| 48 </html> | 48 </html> |
| OLD | NEW |