OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <style> |
| 3 #square { |
| 4 background-color: blue; |
| 5 width: 30px; |
| 6 height: 30px; |
| 7 position: relative; |
| 8 -webkit-backface-visibility: hidden; |
| 9 } |
| 10 |
| 11 #testResults { |
| 12 display: none; |
| 13 } |
| 14 </style> |
| 15 |
| 16 <script> |
| 17 if (window.testRunner) { |
| 18 testRunner.dumpAsText(); |
| 19 } |
| 20 |
| 21 onload = function() { |
| 22 if (!window.internals) |
| 23 return; |
| 24 |
| 25 window.internals.startTrackingRepaints(document); |
| 26 |
| 27 // Remove the div's only compositing reason. This should trigger a repaint. |
| 28 document.getElementById("square").style.webkitBackfaceVisibility = "visible"
; |
| 29 document.getElementById("layertree").textContent = window.internals.layerTre
eAsText(document, internals.LAYER_TREE_INCLUDES_REPAINT_RECTS); |
| 30 window.internals.stopTrackingRepaints(document); |
| 31 |
| 32 document.getElementById("testResults").style.display = "block"; |
| 33 } |
| 34 </script> |
| 35 |
| 36 <div id="square"></div> |
| 37 |
| 38 <div id="testResults"> |
| 39 <pre id="layertree"></pre> |
| 40 </div> |
OLD | NEW |