42 lines
971 B
HTML
42 lines
971 B
HTML
<!DOCTYPE html>
|
|
|
|
<html>
|
|
<head>
|
|
<style>
|
|
body {
|
|
height: 1200px;
|
|
}
|
|
.box {
|
|
width: 100px;
|
|
height: 100px;
|
|
margin: 50px;
|
|
background-color: blue;
|
|
border: 2px solid black;
|
|
}
|
|
|
|
#box {
|
|
background-image: linear-gradient(to top, white, black);
|
|
background-attachment: fixed;
|
|
background-repeat: no-repeat;
|
|
}
|
|
</style>
|
|
<script>
|
|
if (window.testRunner)
|
|
testRunner.dumpAsText();
|
|
|
|
function doTest()
|
|
{
|
|
if (window.internals)
|
|
document.getElementById('reasons').textContent = window.internals.synchronousScrollingReasons();
|
|
}
|
|
window.addEventListener('load', doTest, false);
|
|
</script>
|
|
</head>
|
|
<body>
|
|
<div id="box" class="box"></div>
|
|
|
|
<p>Should be slow scrolling because of slow repaint objects.</p>
|
|
<pre id="reasons"></pre>
|
|
</body>
|
|
</html>
|