- From: Stephen Chenney via GitHub <sysbot+gh@w3.org>
- Date: Sun, 16 Feb 2025 22:39:28 +0000
- To: public-css-archive@w3.org
Working with ::hover because it seems to expose most of the issues with combining highlight pseudos with pseudo-classes. Regarding @tabatkins concern with exposing structure, Issue #11699 is related to the issue of ranges and shadow DOM. The behavior here is not consistent across all type of highlight pseudos, depending on what UAs choose to do for spelling/garmmar, selection etc and limited by the Range API for custom highlights. Regardless, exposing structure is related to the concerns about hover typically triggering on the entire contents of an element but highlights being applied to sub-ranges, as raised by @dbaron in the meeting. To expand on that, something like p::hover will style the entire paragraph when any of the paragraph is hovered, but what should ::selection::hover do when only a portion of the paragraph is selected? It seems odd to trigger the selection hover behavior when an an unrelated portion of the paragraph is hovered. That is one issue to figure out. Issue #11726. Then there is the issue of styling just the triggered range vs all the ranges. Selection exposes the problem where there may be many elements in the current active selection but a user only hovers one of them. I believe this is the situation that gives rise to Tab's first point above, related to exposing structure. That is, moving the pointer over the selection could highlight each internal structural element in turn. @emilio also raised this issue and it is mentioned in the comments above. I've created Issue #11727 to discuss that. I'll make another pass through the meeting notes to see if there are any other open questions. -- GitHub Notification of comment by schenney-chromium Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/7647#issuecomment-2661654088 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Sunday, 16 February 2025 22:39:29 UTC