[iOS WK2] A top fixed bar can flicker when scrolling with the keyboard up
[WebKit-https.git] / LayoutTests / scrollingcoordinator / ios / fixed-scrolling-with-keyboard.html
1 <!DOCTYPE html> <!-- webkit-test-runner [ useFlexibleViewport=true ] -->
2 <html>
3 <head>
4     <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
5
6     <style>
7         body {
8             height: 4000px;
9         }
10         .header {
11             position: fixed;
12             top: 0;
13             left: 0;
14             height: 30px;
15             width: 100%;
16             background-color: rgba(0, 0, 0, 0.5);
17         }
18     </style>
19
20     <script src="../../resources/ui-helper.js"></script>
21     <script>
22         if (window.testRunner) {
23             testRunner.waitUntilDone();
24             testRunner.dumpAsText();
25         }
26
27         window.addEventListener('load', async () => {
28
29             await UIHelper.activateAndWaitForInputSessionAt(5, 5);
30             document.getElementById('input').value = 'hi'; // Trigger a layout and flush.
31             await UIHelper.ensureStablePresentationUpdate();
32
33             let scrollingTree = await UIHelper.getScrollingTree();
34             document.getElementById('scrolling-tree').textContent = scrollingTree;
35             testRunner.notifyDone();
36         }, false);
37     </script>
38 </head>
39 <body>
40     <div class="header">
41         <input id="input">
42     </div>
43 <pre id="scrolling-tree"></pre>
44 </body>
45 </html>