blob: 8b02104c786598f9ab840803e4d6a89dad4ab402 [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<style>
html, body {
margin: 0;
padding: 0;
}
.container {
width: 100px;
height: 100px;
overflow: auto;
background-color: lime;
}
.box {
width: 500px;
height: 500px;
}
</style>
<script>
if (window.internals) {
testRunner.dumpAsTextWithPixelResults();
internals.runtimeFlags.overlayScrollbarsEnabled = true;
internals.settings.setMockScrollbarsEnabled(true);
}
</script>
</head>
<body>
<p>You should see first 2 green boxes with overlay scrollbars.
The second box should have a scrollbar on the left.
Remaining 2 green boxes should appear without overlay scrollbars.
</p>
<div class="container"><div class="box"></div></div>
<div dir="rtl" class="container"><div class="box"></div></div>
<div class="container" style="overflow: scroll"></div>
<div dir="rtl" class="container" style="overflow: scroll"></div>
</body>
</html>