forked from mirrors/gecko-dev
Automatic update from web-platform-tests WPT test for crbug.com/353294051 Cherry-picked from https://chromium-review.googlesource.com/c/chromium/src/+/5717850. Bug: 353294051 Change-Id: I16d18bda046dd22b66d45b1db29edbce22a754ae Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5727176 Commit-Queue: Xianzhu Wang <wangxianzhu@chromium.org> Commit-Queue: Philip Rogers <pdr@chromium.org> Reviewed-by: Philip Rogers <pdr@chromium.org> Auto-Submit: Xianzhu Wang <wangxianzhu@chromium.org> Cr-Commit-Position: refs/heads/main@{#1330587} -- wpt-commits: f9447a89949343c4414d1952feb3a1e016034091 wpt-pr: 47210
22 lines
764 B
HTML
22 lines
764 B
HTML
<!DOCTYPE html>
|
|
<html class="reftest-wait" style="overflow: hidden">
|
|
<link rel="help" href="https://crbug.com/353294051">
|
|
<link rel="match" href="document-element-overflow-hidden-scroll-ref.html">
|
|
<script src="/common/reftest-wait.js"></script>
|
|
<script src="/common/rendering-utils.js"></script>
|
|
<div style="height: 100px"></div>
|
|
<div style="width: 100px; height: 100px; background: green"></div>
|
|
<div style="height: 2000px; background: white"></div>
|
|
<div style="width: 100px; height: 100px; background: red"></div>
|
|
<script>
|
|
waitForAtLeastOneFrame().then(() => {
|
|
scrollTo(0, 3000);
|
|
waitForAtLeastOneFrame().then(() => {
|
|
scrollTo(0, 300);
|
|
waitForAtLeastOneFrame().then(() => {
|
|
scrollTo(0, 100);
|
|
takeScreenshot();
|
|
});
|
|
});
|
|
});
|
|
</script>
|