AccessGenerationState::emitExplicitExceptionHandler can clobber an in use register
[WebKit-https.git] / LayoutTests / compositing / shared-backing / overflow-scroll / shared-layer-repaint.html
1 <!DOCTYPE html> <!-- webkit-test-runner [ internal:AsyncOverflowScrollingEnabled=true ] -->
2 <html>
3 <head>
4     <title>Test repainting with layer sharing</title>
5     <style>
6         .container {
7             position: relative;
8             width: 200px;
9             height: 200px;
10             margin: 50px;
11             border: 1px solid black;
12             overflow: hidden;
13             box-shadow: 0 0 14px gray;
14         }
15         
16         .box {
17             width: 100px;
18             height: 100px;
19             background-color: blue;
20             margin: 10px;
21         }
22         
23         .box.changed {
24             background-color: orange;
25         }
26         
27         .trigger {
28             position: absolute;
29             left: 20px;
30             top: 10px;
31             width: 50px;
32             height: 50px;
33             background-color: gray;
34             transform: translateZ(0);
35         }
36         
37         .relative {
38             position: relative;
39             top: 50px;
40             left: 120px;
41             border: 5px solid green;
42         }
43     </style>
44     <script>
45         if (window.testRunner) {
46             testRunner.dumpAsText();
47             testRunner.waitUntilDone();
48         }
49
50         window.addEventListener('load', () => {
51             setTimeout(() => {
52                 document.body.offsetTop;
53                 if (window.internals)
54                     window.internals.startTrackingRepaints();
55
56                 document.getElementById('target').classList.add('changed');
57             
58                 if (window.internals)
59                     document.getElementById('layers').textContent = internals.layerTreeAsText(document, internals.LAYER_TREE_INCLUDES_REPAINT_RECTS);
60
61                 if (window.testRunner)
62                     testRunner.notifyDone();
63             }, 0);
64         }, false);
65     </script>
66 </head>
67 <body>
68     <div class="trigger"></div>
69     <div class="container">
70         <div id="target" class="relative box">
71         </div>
72     </div>
73 <pre id="layers"></pre>
74 </body>
75 </html>