Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/css-overflow/scroll-marker-counters.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<title>CSS Overflow Test: ::scroll-marker counters</title>
<link rel="match" href="scroll-marker-counters-ref.html">
<style>
#scroller {
overflow: hidden;
scroll-marker-group: after;
counter-reset: item;
height: 100px;
width: 100px;
}
#scroller::scroll-marker-group {
border: 3px solid black;
display: flex;
height: 100px;
width: 300px;
}
.item {
height: 100px;
width: 100px;
}
.item::scroll-marker {
content: counter(item);
counter-increment: item;
background-color: green;
border-radius: 50%;
height: 100px;
width: 100px;
}
</style>
<div id="scroller">
<div class="item">1</div>
<div class="item">2</div>
<div class="item">3</div>
</div>