- From: Tab Atkins Jr. via GitHub <sysbot+gh@w3.org>
- Date: Wed, 02 Apr 2025 16:13:38 +0000
- To: public-css-archive@w3.org
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