- From: Christoph Päper via GitHub <sysbot+gh@w3.org>
- Date: Wed, 07 May 2025 21:02:30 +0000
- To: public-css-archive@w3.org
Crissov has just created a new issue for https://github.com/w3c/csswg-drafts: == [css-pseudo] Click or Tap Location == As part of the [highlight pseudo-elements](https://drafts.csswg.org/css-pseudo/#highlight-pseudos) I think it might be helpful to introduce an empty pseudo-element that was located at the point of a mouse click or area of a finger tap, e.g. `::hit`. This would enable authors to add visual clues for when and where a pointer interaction has happened, which is especially helpful in presentations for other spectators, although some users also employ it as an accessibility hint for themselves. Unlike OS or app features, a CSS-native solution could interact with other Selectors, so a click on a button or link could be styled differently than once on a paragraph, for instance. I believe it has been proposed, but not added yet to [css-anchor](https://drafts.csswg.org/css-anchor-position/), to make the mouse pointer position a predefined and dynamic anchor reference. Combine with `:active`, this might look like a possible alternative, but it would involve another element box, whereas a designated pseudo-element could be styled directly. Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/12172 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Wednesday, 7 May 2025 21:02:32 UTC