Re: [csswg-drafts] [css-overflow-5] Making ::scroll-marker existence unconditional? (#11600)

So the proposal is that we solve this case by instead specifying `:target-past` and `:target-future`. These match any scroll markers *before* or *after* the current scroll marker (or, if no scroll marker is current, before/after the break where a current marker *could theoretically be*.

Then @argyleink's selector would be:

```css
.carousel li::scroll-marker:target-past {
  opacity: 1;
}
```

Which is admittedly way more straightforward, and works even when the markup structure for the scroll targets is much more complex and not amenable to a simple selector.

However, this doesn't solve the "style the target element when the marker is hover" use-case Adam brought up afterwards.

-- 
GitHub Notification of comment by tabatkins
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/11600#issuecomment-2773087694 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Wednesday, 2 April 2025 16:13:39 UTC