| OLD | NEW | 
|   1 <!DOCTYPE html> |   1 <!DOCTYPE html> | 
|   2 <html> |   2 <html> | 
|   3   <head> |   3   <head> | 
|   4     <script src="../../fast/js/resources/js-test-pre.js"></script> |   4     <script src="../../fast/js/resources/js-test-pre.js"></script> | 
|   5     <script src="../../compositing/overflow/resources/automatically-opt-into-com
    posited-scrolling.js"></script> |   5     <script src="../../compositing/overflow/resources/automatically-opt-into-com
    posited-scrolling.js"></script> | 
|   6     <script> |   6     <script> | 
|   7       if (window.internals) |   7       if (window.internals) | 
|   8         window.internals.settings.setAcceleratedCompositingForOverflowScrollEnab
    led(true); |   8         window.internals.settings.setAcceleratedCompositingForOverflowScrollEnab
    led(true); | 
|   9  |   9  | 
|  10       function runTest() { |  10       function runTest() { | 
|  11         var targetDiv = document.getElementById('targetDiv'); |  11         var targetDiv = document.getElementById('targetDiv'); | 
|  12         var resultDiv = document.getElementById('result'); |  12         var resultDiv = document.getElementById('result'); | 
 |  13  | 
 |  14         if (window.internals) | 
 |  15           window.internals.forceCompositingUpdate(document); | 
 |  16  | 
|  13         if (!window.internals || !didOptIn(targetDiv)) |  17         if (!window.internals || !didOptIn(targetDiv)) | 
|  14           resultDiv.innerHTML = "Error: target scrollable overflow div did not o
    pt-in."; |  18           resultDiv.innerHTML = "Error: target scrollable overflow div did not o
    pt-in."; | 
|  15         var clientRect = document.getElementById('targetLink').getBoundingClient
    Rect(); |  19         var clientRect = document.getElementById('targetLink').getBoundingClient
    Rect(); | 
|  16         x = (clientRect.left + clientRect.right) / 2; |  20         x = (clientRect.left + clientRect.right) / 2; | 
|  17         y = (clientRect.top + clientRect.bottom) / 2; |  21         y = (clientRect.top + clientRect.bottom) / 2; | 
|  18         if (window.testRunner) { |  22         if (window.testRunner) { | 
|  19           testRunner.dumpAsTextWithPixelResults(); |  23           testRunner.dumpAsTextWithPixelResults(); | 
|  20           testRunner.waitUntilDone(); |  24           testRunner.waitUntilDone(); | 
|  21         } |  25         } | 
|  22  |  26  | 
| (...skipping 17 matching lines...) Expand all  Loading... | 
|  40       <a href="">Link 4</a><br> |  44       <a href="">Link 4</a><br> | 
|  41       <a href="">Link 5</a><br> |  45       <a href="">Link 5</a><br> | 
|  42     </div> |  46     </div> | 
|  43     <div style="position: relative; left: 10px; top: 80px"> |  47     <div style="position: relative; left: 10px; top: 80px"> | 
|  44       This test is successful if "Target Link" above is covered in a transparent
     green |  48       This test is successful if "Target Link" above is covered in a transparent
     green | 
|  45       rectangle with rounded corners and the list is partially scrolled. |  49       rectangle with rounded corners and the list is partially scrolled. | 
|  46     </div> |  50     </div> | 
|  47     <div id="result"></div> |  51     <div id="result"></div> | 
|  48   </body> |  52   </body> | 
|  49 </html> |  53 </html> | 
| OLD | NEW |