<!doctype html>
<title>CSS Test Reference: scrollIntoView with scrollbar gutter on root frame viewport</title>
<style>
:root {
scrollbar-gutter: stable both-edges;
writing-mode: vertical-lr;
overflow: hidden;
}
body {
margin: 0;
}
#target {
width: 100px;
height: 100px;
border: 4px solid black;
position: absolute;
left: 0;
top: 0px;
background-color: lightgreen;=
}
#bg {
background-color: khaki;
width: 200vw;
height: 400vh;
}
</style>
<div id="bg"></div>
<div id="target"></div>