Open dandclark opened 2 years ago
The CSS Working Group just discussed [css-highlight-api] Incubating custom highlight pointer event handling in CSSWG
, and agreed to the following:
RESOLVED: Incubate this in CSSWG
RESOLVED: Create a highlight L2 spec, dandclark is an editor
Back in 2019 @sanketj posted a doc on the MSEdgeExplainers repo proposing an addition to Highlight API that would allow custom highlights to receive pointer events: https://github.com/MicrosoftEdge/MSEdgeExplainers/blob/main/highlight/events-explainer.md. This would make highlights interactive, unlocking useful scenarios like custom spell-checking where hovering or clicking a misspelled word shows spelling suggestions, or highlighted annotations that scroll-into-view and/or update the user's selection when clicked.
The Highlight API spec has matured significantly since then, and it is on the verge of shipping by default in Chromium. Thus it seems like this is a good time to move forward with this enhancement of the spec.
Would the CSSWG be interested in being the venue for incubating/specifying Highlight pointer events? This would have more DOM integration than the base Highlight API, but given the momentum that Highlight API has had here so far it seems like CSSWG is a good place to develop this.
If so, I'll start by moving some Highlight pointer events issues in the MSEdgeExplainers repo over to csswg-drafts and begin proposing some solutions.
cc @frivoal