- From: Christian Schaefer via GitHub <sysbot+gh@w3.org>
- Date: Sat, 28 Sep 2024 14:48:33 +0000
- To: public-css-archive@w3.org
Hey there, first and foremost, it's wonderful to see this being addressed. It might be bike shedding, but it has the potential to set the path forward for many upcoming specs, too. I did a quick check by issuing `document.querySelector(':current')` and `document.querySelector(':current(p)')` commands in their developer consoles and apparently none of the three major rendering engines seemed to have implemented the `:current` selector so far. This means, it can still be repurposed to fit broader needs. That said, I do like `:target-shown` a lot. It would also work with the Carousel API. It also solves the problem that while `:current` might be familiar as it reminds people of `aria-current`, it would not work exactly the same way and confuse people. I find `aria-current` to exhibit more of a static nature: It marks the current document as the selected one in a navigation tree, as the current step in a multi step wizard or as the current date in a calendar. The CSS pseudo class on the other hand would be a lot more fluid and it would change multiple times during a page's lifecycle. -- GitHub Notification of comment by Schepp Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/10918#issuecomment-2380664140 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Saturday, 28 September 2024 14:48:34 UTC