Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/cssom-view/overflow-hidden-smooth-scroll-crash.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<html class="test-wait">
<body style="font-size: 4000px">
A
<div id=container style="overflow: hidden">
B
<div style="overflow: scroll">C</div>
</div>
</div>
</body>
<script>
function doTest() {
container.scrollLeft = 1;
container.addEventListener('scrollend', () => {
document.documentElement.classList.remove('test-wait');
});
container.style.scrollBehavior = 'smooth';
container.scrollLeft = 20;
}
window.addEventListener('load', doTest);
</script>