1
0
Fork 0
firefox/testing/web-platform/tests/css/css-overflow/content-change-then-scroll-into-view.html
Daniel Baumann 5e9a113729
Adding upstream version 140.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-25 09:37:52 +02:00

22 lines
877 B
HTML

<!DOCTYPE html>
<html class="reftest-wait">
<link rel="help" href="https://crbug.com/364669904">
<link rel="match" href="../reference/ref-filled-green-100px-square.xht">
<script src="/common/reftest-wait.js"></script>
<script src="/common/rendering-utils.js"></script>
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
<div id="scroller" style="position: relative; overflow: scroll; scrollbar-width: none;
width: 200px; height: 200px">
<div style="height: 2000px"></div>
<div id="content" style="position: absolute; top: 1000px; background: red;
width: 100px; height: 100px"></div>
</div>
<script>
waitForAtLeastOneFrame().then(() => {
content.style.background = 'green';
waitForAtLeastOneFrame().then(() => {
scroller.scrollTo(0, 1000);
takeScreenshot();
});
});
</script>