Open
Description
It's common practice to make the offscreen pages in a carousel inert, however, the ::scroll-marker
pseudo-elements generated for them should not be. In general, it would make sense for them to inherit their interactivity from the ::scroll-marker-group
as this is the control into which they are placed.
E.g. in the following example, only the current page is interactive, but the markers to go to the other pages are expected to be interactive.
<style>
.scroller {
scroll-marker-group: after;
overflow: auto;
scroll-snap-type: x mandatory;
}
.page {
interactivity: inert;
@container scroll-state(snapped: inline) {
interactivity: auto;
}
}
.page::scroll-marker {
counter-increment: page;
content: counter(page);
}
</style>
<div class=scroller>
<div class=page></div>
<div class=page></div>
<div class=page></div>
<div class=page></div>
</div>
Metadata
Metadata
Assignees
Type
Projects
Status
Wednesday Morning