CKTIS / CSS
scroll-marker-group — grouping scroll markers
The scroll-marker-group property enables a generated group of scroll markers and specifies its position and interaction mode.
Version: CSS modules; structured CSSWG indexes reconciled with pinned MDN BCD; Chromium 152 scope gate, per-example verification still required
Syntax
scroll-marker-group: none | [ [ before | after ] || [ links | tabs ] ];scroll-marker-group applies to scroll containers. Its initial value, none, disables the group; the property is not inherited. before and after place its box before or after the container; for the root element, it becomes the first or last child instead.
The property creates ::scroll-marker-group, not individual markers: those require ::scroll-marker with non-none content. Explicitly specifying links provides link navigation, whereas tabs provides tab behavior with different focus and accessibility handling. Omitting the mode, as in scroll-marker-group: after, does not select links behavior. || permits either or both keyword groups.
This is a draft specification, not a support guarantee. The example checks the declaration with after, not the interaction mode. Test keyboard interaction separately in your browser.
Examples
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>scroll-marker-group: markers after a scroller</title>
<style>
#pages {
inline-size: 15rem;
max-inline-size: 100%;
block-size: 8rem;
overflow: auto;
border: 1px solid;
scroll-marker-group: after;
}
.page {
box-sizing: border-box;
block-size: 8rem;
padding: 1rem;
}
#pages::scroll-marker-group {
display: flex;
gap: 0.75rem;
}
.page::scroll-marker {
content: attr(data-marker);
padding: 0.25rem;
}
.page::scroll-marker:target-current {
font-weight: bold;
text-decoration: underline;
}
</style>
</head>
<body>
<div id="pages" role="region" aria-label="Scrollable pages" tabindex="0">
<div class="page" data-marker="Page 1">Page 1</div>
<div class="page" data-marker="Page 2">Page 2</div>
<div class="page" data-marker="Page 3">Page 3</div>
</div>
<p id="status" role="status"></p>
<script>
const pages = document.getElementById('pages');
const property = 'scroll-marker-group';
const supported = CSS.supports(property, 'after');
const computed = getComputedStyle(pages).getPropertyValue(property).trim();
document.getElementById('status').textContent = supported
? `${property}: after syntax supported.`
: `${property}: after syntax unsupported. The pages can still be scrolled manually.`;
const passed = supported ? computed.split(/\s+/).includes('after') : computed === '';
console.log(`scroll-marker-group declaration check: ${passed ? 'PASS' : 'FAIL'}`);
</script>
</body>
</html>Result
scroll-marker-group declaration check: PASS
The displayed code and declared result were verified in an isolated environment using the method recorded in the verification evidence for this exact version.