Skip to content
This repository was archived by the owner on Jul 9, 2025. It is now read-only.

Commit 45efcad

Browse files
wangxianzhumoz-wptsync-bot
authored andcommitted
Bug 1915763 [wpt PR 47880] - Change where we force main-thread scrolling for overflow:hidden, a=testonly
Automatic update from web-platform-tests Change where we force main-thread scrolling for overflow:hidden Previously the logic depended on RasterInducingScroll, and didn't work if the scroller is not painted. Now add main-thread scrolling on the blink scroll node in PaintPropertyTreeBuilder. Bug: 356436619 Change-Id: Ifebc2b33e6abdede7881d962407749df6742a1cf Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5823800 Reviewed-by: Philip Rogers <[email protected]> Commit-Queue: Xianzhu Wang <[email protected]> Cr-Commit-Position: refs/heads/main@{#1348985} -- wpt-commits: f4430cff32a4cb351825e5c88415d58ba4094400 wpt-pr: 47880
1 parent 5609af8 commit 45efcad

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<!DOCTYPE html>
2+
<html class="test-wait">
3+
<link rel="help" href="https://drafts.csswg.org/cssom-view/#concept-smooth-scroll">
4+
<link rel="help" href="https://crbug.com/356436619">
5+
<body style="font-size: 4000px">
6+
A
7+
<div id=container style="overflow: hidden">
8+
B
9+
<div style="overflow: scroll">C</div>
10+
</div>
11+
</div>
12+
</body>
13+
<script>
14+
function doTest() {
15+
container.scrollLeft = 1;
16+
container.addEventListener('scrollend', () => {
17+
document.documentElement.classList.remove('test-wait');
18+
});
19+
container.style.scrollBehavior = 'smooth';
20+
container.scrollLeft = 20;
21+
}
22+
window.addEventListener('load', doTest);
23+
</script>

0 commit comments

Comments
 (0)