- From: Robert Flack via GitHub <sysbot+gh@w3.org>
- Date: Mon, 13 Jan 2025 21:37:44 +0000
- To: public-css-archive@w3.org
> Hm, for the ancestors case I've seen both behaviors; for example, in a ToC scroll indicator, I've seen both "just indicate the single most relevant entry" and "indicate the most relevant entry and all ancestors, since you're also in them"; I think the latter is sometimes done with a slightly different styling on the ancestors. > > We might want to track and expose both of these concepts; select the single most relevant marker in a group and let it match `:target-current`, but also define a `:target-current-all` pseudo that'll match the current target, its ancestors (if they're also possible scroll markers in the group) and other scroll markers that could in theory be considered "relevant", except that another visible marker target is already considered more relevant. Wouldn't the most common way developers would style the ancestors of the inner active marker be with `:has`, e.g. something like ```css .target:has(.target::scroll-marker::target-current)::scroll-marker { /* Style ancestor markers of the current scroll marker */ } ``` -- GitHub Notification of comment by flackr Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/11098#issuecomment-2588272079 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Monday, 13 January 2025 21:37:45 UTC