blob: 506ac67f0c876740ce8b4529de4abe18a194db05 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
<!DOCTYPE html>
<html class="reftest-wait">
<link rel="help" href="https://drafts.csswg.org/css-will-change/#will-change">
<link rel="match" href="will-change-transform-huge-offset-scrolled-ref.html">
<div style="width: 20px; height: 20px; margin-top: 10000px; background: green; will-change: transform"></div>
<script>
// Incrementally scroll to the bottom.
var lastScrollY = 0;
function scroll() {
window.scrollBy(0, 200);
if (window.scrollY > lastScrollY) {
lastScrollY = window.scrollY;
requestAnimationFrame(scroll);
} else {
document.documentElement.classList.remove('reftest-wait');
}
}
requestAnimationFrame(scroll);
</script>
|