Move /platform/ios-simulator/accessibility tests to accessibility/ios-simulator/
[WebKit-https.git] / LayoutTests / platform / mac-wk2 / tiled-drawing / scrolling / slow-scrolling-background-toggle.html
1 <!DOCTYPE html>
2
3 <html>
4 <head>
5     <style>
6         body {
7             height: 1200px;
8         }
9         .box {
10           width: 100px;
11           height: 100px;
12           margin: 50px;
13           background-color: blue;
14           border: 2px solid black;
15         }
16         
17         #box {
18             background-image: linear-gradient(to top, white, black);
19             background-attachment: fixed;
20             background-repeat: no-repeat;
21         }
22         
23         #box.loaded {
24             background: transparent;
25         }
26     </style>
27     <script>
28         if (window.testRunner)
29             testRunner.dumpAsText();
30
31         function doTest()
32         {
33             var box = document.getElementById('box');
34             box.classList.add('loaded');
35             
36             if (window.internals)
37                 document.getElementById('reasons').textContent = window.internals.mainThreadScrollingReasons();
38         }
39         window.addEventListener('load', doTest, false);
40     </script>
41 </head>
42 <body>
43
44     <div id="box" class="box"></div>
45     <p>Test passes if there are no reasons for slow scrolling below.</p>
46 <pre id="reasons"></pre>
47 </body>
48 </html>