| 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: 2000px; | 6 height: 2000px; |
| 7 } | 7 } |
| 8 | 8 |
| 9 .positionFixed { | 9 .positionFixed { |
| 10 position: fixed; | 10 position: fixed; |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 background-color: green; | 51 background-color: green; |
| 52 width: 50px; | 52 width: 50px; |
| 53 height: 100px; | 53 height: 100px; |
| 54 top: 10px; | 54 top: 10px; |
| 55 left: 5px; | 55 left: 5px; |
| 56 z-index: 1; | 56 z-index: 1; |
| 57 } | 57 } |
| 58 </style> | 58 </style> |
| 59 <script> | 59 <script> |
| 60 if (window.internals) | 60 if (window.internals) |
| 61 window.internals.settings.setAcceleratedCompositingForOverflowScrollEnabled(
true); | 61 window.internals.settings.setPreferCompositingToLCDTextEnabled(true); |
| 62 | 62 |
| 63 function addDomElement(elementType, className, id, parent, description, indent) | 63 function addDomElement(elementType, className, id, parent, description, indent) |
| 64 { | 64 { |
| 65 var element = document.createElement(elementType); | 65 var element = document.createElement(elementType); |
| 66 element.setAttribute("class", className); | 66 element.setAttribute("class", className); |
| 67 element.setAttribute("id", id); | 67 element.setAttribute("id", id); |
| 68 if (parent === "body") | 68 if (parent === "body") |
| 69 document.body.appendChild(element); | 69 document.body.appendChild(element); |
| 70 else | 70 else |
| 71 document.getElementById(parent).appendChild(element); | 71 document.getElementById(parent).appendChild(element); |
| (...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 266 } | 266 } |
| 267 } | 267 } |
| 268 | 268 |
| 269 window.onload = doTest; | 269 window.onload = doTest; |
| 270 | 270 |
| 271 </script> | 271 </script> |
| 272 </head> | 272 </head> |
| 273 <body> | 273 <body> |
| 274 </body> | 274 </body> |
| 275 </html> | 275 </html> |
| OLD | NEW |