24 lines
706 B
HTML
24 lines
706 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<script>
|
|
if (window.internals) {
|
|
internals.settings.setUserInterfaceDirectionPolicy("System");
|
|
internals.settings.setSystemLayoutDirection("RTL");
|
|
}
|
|
</script>
|
|
<script>
|
|
if (window.internals)
|
|
internals.setUsesOverlayScrollbars(true);
|
|
</script>
|
|
</head>
|
|
<body style="margin: 0px;">
|
|
This test makes sure that overlay scrollbars don't push contents over.
|
|
<div style="width: 370px; height: 400px; overflow: hidden">
|
|
<div style="width: 400px; height: 400px; overflow-x: hidden; overflow-y: auto; position: relative; left: -15px; background: blue;">
|
|
<div style="background: green;">This is some text and each pixel should match exactly.</div>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html>
|