Source code

Revision control

Copy as Markdown

Other Tools

<!doctype html>
<meta charset="utf-8">
<title>::scroll-markers with content-visibility: auto ancestors ref</title>
<link rel="author" href="mailto:vmpstr@chromium.org">
<style>
#scroller {
width: 600px;
height: 300px;
overflow: scroll;
scroll-marker-group: after;
}
#scroller div {
width: 600px;
height: 300px;
margin-bottom: 20px;
background: green;
}
#scroller::scroll-marker-group {
border: 3px solid black;
padding: 5px;
height: 20px;
display: block;
}
#scroller div::scroll-marker {
content: "";
width: 10px;
height: 10px;
background-color: blue;
border-radius: 50%;
display: inline-block;
}
</style>
<div id="scroller">
<div></div> <div></div> <div></div>
<div></div> <div></div> <div></div>
<div></div> <div></div> <div></div>
<div></div> <div></div> <div></div>
<div></div> <div></div> <div></div>
<div></div> <div></div> <div></div>
<div></div> <div></div> <div></div>
<div></div> <div></div> <div></div>
<div></div> <div></div> <div></div>
<div></div> <div></div> <div></div>
<div></div> <div></div> <div></div>
<div></div> <div></div> <div></div>
</div>