- From: Roman Komarov via GitHub <sysbot+gh@w3.org>
- Date: Wed, 20 Nov 2024 14:54:41 +0000
- To: public-css-archive@w3.org
For Table of Contents cases, I can generally remember 3 different types of designs that are related to this issue: 1. The “only the last visible scroll-target is highlighted” (the common use case) 2. The “all visible before and including the last visible scroll-target are highlighted” (the one in this issue + cases when there are many small sections in ToC and we want to mark all of them) 3. _All_ previous scroll-targets are highlighted (when all “already read” sections of a ToC are dimmed, for example). I wonder if we'd want to have a control over which we choose, and maybe more than one pseudo-class for this? So not just `:target-current`, but two more (needs bikeshedding, but basically `:target-current-visible` for 2 and `:target-previous` for 3 (and, I guess, we could want `:target-next`? alongside)) We could have some logic similar to the one in the latest comment, but I wonder if having more explicit way to control it could be better? (alternative to multiple pseudoclasses could be a separate property that says how the `:target-current` should be selected, I guess?) -- GitHub Notification of comment by kizu Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/10738#issuecomment-2488799255 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Wednesday, 20 November 2024 14:54:42 UTC