AccessGenerationState::emitExplicitExceptionHandler can clobber an in use register
[WebKit-https.git] / LayoutTests / compositing / shared-backing / remove-sharing-layer.html
1 <!DOCTYPE html>
2 <html>
3 <head>
4     <title>Tests that there is no crash when a sharing layer is removed.</title>
5     <style>
6     .trigger {
7         position: absolute;
8         top: 0;
9         left: 0;
10         height: 100px;
11         width: 100px;
12         background-color: silver;
13         transform: translateZ(0);
14     }
15
16     .absolute {
17         position: absolute;
18         top: 50px;
19         left: 50px;
20         width: 200px;
21         height: 200px;
22         background: gray;
23     }
24     
25     .inner {
26         filter: drop-shadow(black 0 0 5px);
27         margin: 10px;
28         width: 100px;
29         height: 100px;
30         background-color: blue;
31     }
32
33     .inner.changed {
34         filter: none;
35     }
36
37     </style>
38     <script>
39         if (window.testRunner) {
40             testRunner.dumpAsText();
41             testRunner.waitUntilDone();
42         }
43
44         function doTest()
45         {
46             setTimeout(() => {
47                 document.getElementById('target').classList.add('changed');
48                 if (window.testRunner)
49                     testRunner.notifyDone();
50             }, 0);
51         }
52         window.addEventListener('load', doTest, false);
53     </script>
54 </head>
55 <body>
56     <p>This test should not crash or assert.</p>
57     <div class="trigger"></div>
58     <div class="absolute">
59         <div id="target" class="inner"></div>
60     </div>
61 </body>
62 </html>