| <!DOCTYPE html> <!-- webkit-test-runner [ internal:AsyncOverflowScrollingEnabled=true ] --> |
| <title>Check that scrolling nodes get reparented when an ancestor is removed</title> |
| testRunner.waitUntilDone(); |
| requestAnimationFrame(() => { |
| document.getElementById('target').classList.add('changed'); |
| document.getElementById('scrollingTree').innerText = window.internals.scrollingStateTreeAsText() + "\n"; |
| window.addEventListener('load', doTest, false); |
| background-color: silver; |
| <div class="scrolling-content"> |
| <div class="intermediate scroller" id="target"> |
| <div class="scrolling-content"> |
| <div class="inner scroller"> |
| <div class="scrolling-content"> |
| <pre id="scrollingTree"></pre> |