Re: [csswg-drafts] [css-highlight-api] Approaches for dispatching highlight pointer events (#7513)

Hi all, we are planning on creating a spec and implementing the `highlightsFromPoint()` API on `CSS.highlights` (not `DocumentOrShadowRoot`). 

The issue of how the API interacts with shadow DOM is detailed in #7766. In summary, we proposed that the API has an optional dictionary parameter with a key that maps to an array of `ShadowRoot` objects that can return highlights, similar to [`caretPositionFromPoint()`](https://drafts.csswg.org/cssom-view/#dom-document-caretpositionfrompoint) and `getHTML()`. Please let us know if there are any questions or concerns. Thanks!

cc: @sanketj 

-- 
GitHub Notification of comment by stephanieyzhang
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/7513#issuecomment-2257162181 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Monday, 29 July 2024 23:11:22 UTC