@BLINK-ALLOW:setSize*
@BLINK-ALLOW:posInSet*
@BLINK-ALLOW:focusable*
@WAIT-FOR:Done
-->
<!doctype html>
<style>
.carousel {
overflow: auto;
columns: 1;
height: 200px;
quotes: "<<" ">>";
scroll-marker-group: after;
&::scroll-marker-group {
height: 1rem;
width: 100%;
text-align: center;
}
& > div {
height: 100%;
counter-increment: c;
&::scroll-marker {
display: inline-block;
width: 1rem;
height: 1rem;
border: 1px solid black;
}
&::scroll-marker:target-current {
background: blue;
}
}
}
#one::scroll-marker {
content: 'content' / 'alt text name';
}
#two::scroll-marker {
content: open-quote "content text name" linear-gradient(green, blue) counter(c);
}
#three::scroll-marker {
content: '';
}
#four::scroll-marker {
content: '';
}
</style>
<div class=carousel>
<div id=one aria-label="one">One</div>
<div id=two aria-label="two">Two</div>
<div id=three aria-label="scroll target name">Three</div>
<div id=four>Four</div>
</div>
<script>
onload = () => {
requestAnimationFrame(() => requestAnimationFrame(() => {
document.title = 'Done';
}));
};
</script>