8000 [CSS Pseudo] Hit test regions for pseudo-classes on highlight pseudo-elements · Issue #11726 · w3c/csswg-drafts · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
[CSS Pseudo] Hit test regions for pseudo-classes on highlight pseudo-elements #11726
Open
@schenney-chromium

Description

@schenney-chromium

In Issue #7647 it was resolved to support pseudo-classes on pseudo-highlights. The canonical use case being hover on custom highlights.

How should we define the active region for detecting the pseudo-class trigger state, when it may be that only a portion of the element is highlighted by the pseudo-highlight? My initial proposal is that the highlighted area should trigger the pseudo state.

For example, if you have code highlighting turned on for a single pre, such that different ranges are highlighted with different highlights, a pre::highlight(blah):hover would only trigger when that specific highlight area was hovered.

If you have #tooltip:hover and ::selection::hover and you selected part of the tooltip, then hovered, the selection would match ::selection::hover and the rest of the element would match #tooltip:hover.

Thought needs to go into how this would be implemented.

@dbaron @emilio @tabatkins

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0