- From: Robert Flack via GitHub <sysbot+gh@w3.org>
- Date: Thu, 04 Apr 2024 18:53:12 +0000
- To: public-css-archive@w3.org
I think that if a pseudoElement is targeted by a snap event, we should handle this similar to a pseudoElement targeted by other targeted events (e.g. pointerevents / ui-events) where the target is the owning element of the pseudoElement, e.g. try clicking on the `::before` or `::marker` objects in https://codepen.io/flackr/pen/NWmyRra If in the future developers need to know which pseudo-element was the target we could follow the precedent of [animation events](https://drafts.csswg.org/css-animations/#interface-animationevent-idl) and add a string pseudoElement representing the targeted pseudo element but I think we probably don't need to add this yet as we don't have this for most events. More generally I think we do want to be able to target pseudo elements, and there is an [interface for them to be event targets defined in pseudo-4](https://www.w3.org/TR/css-pseudo-4/#CSSPseudoElement-interface), but this will be a backwards incompatible change for other targeted events. -- GitHub Notification of comment by flackr Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/10175#issuecomment-2037976782 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Thursday, 4 April 2024 18:53:13 UTC