gecko-dev/testing/web-platform/tests/css/css-overflow/scrollbar-gutter-scroll-into-view.html
Florian Rivoal 78e84b7a04 Bug 1918592 [wpt PR 48146] - Move test to the correct directory, a=testonly
Automatic update from web-platform-tests
Move test to the correct directory (#48146)

--

wpt-commits: 54ce43a90a73a25c05cb669e5abc7929039baab4
wpt-pr: 48146
2024-09-16 05:58:16 +00:00

38 lines
No EOL
903 B
HTML

<!doctype html>
<meta charset="utf-8">
<title>CSS Test: scrollIntoView with scrollbar gutter on root frame viewport</title>
<link rel="author" href="mailto:sakhapov@chromium.org">
<link rel="match" href="scrollbar-gutter-scroll-into-view-ref.html">
<link rel="help" href="https://drafts.csswg.org/css-overflow/#scrollbar-gutter-property">
<link rel="help" href="https://crbug.com/355460994">
<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: 10px;
top: 150vh;
background-color: lightgreen;
}
#bg {
background-color: khaki;
width: 200vw;
height: 400vh;
}
</style>
<div id="bg"></div>
<div id="target"></div>
<script>
target.scrollIntoView({ inline: "start" });
</script>