@WAIT-FOR:Done
-->
<!doctype html>
<style>
.carousel {
overflow: auto;
columns: 1;
height: 200px;
width: 200px;
scroll-marker-group: after tabs;
&::scroll-marker-group {
height: 1rem;
width: 100%;
text-align: center;
}
& > div {
height: 100%;
&::scroll-marker {
display: inline-block;
content: '';
width: 1rem;
height: 1rem;
border: 1px solid black;
}
&::scroll-marker:target-current {
background: blue;
}
}
}
</style>
<div id="scroller" class=carousel>
<div><a href="#">One</a></div>
<div>Two</div>
<div><span><a href="#">3</a></span>Three</div>
</div>
<script>
document.addEventListener("DOMContentLoaded", () => {
const a11ySyncTimeMs = 1000;
document.documentElement.offsetTop;
scroller.scrollLeft = 400;
document.documentElement.offsetTop;
setTimeout(() => {
requestAnimationFrame(() => {
requestAnimationFrame(() => {
document.documentElement.offsetTop;
document.title = "Done";
});
});
}, a11ySyncTimeMs);
});
</script>