Skip to content

[css-overflow-5] ::scroll-marker should determine inherited interactivity from ::scroll-marker-group #11746

Open
@flackr

Description

@flackr

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

No one assigned

    Type

    No type

    Projects

    Status

    Wednesday Morning

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions