Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/css-transforms/crashtests/transformed-scroller-snapping.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<html class="test-wait">
<meta charset="utf-8">
<title>Transformed scroll height subpixel snapping should not crash</title>
<style>
#heightChange {
vertical-align: 10%;
height: 200px;
display: inline-block;
}
#scroller {
overflow: scroll;
position: absolute;
padding-bottom: 101%;
transform: scale(0.9);
height: 10px;
}
#text {
vertical-align: 10%;
}
</style>
<div id="heightChange"></div>
<div id="scroller"><span id="text">PASS</span></div>
<script>
requestAnimationFrame(function() {
heightChange.style.height = '0';
document.documentElement.classList.remove('test-wait');
});
</script>
</html>