Re: [csswg-drafts] [css-highlight-api] Exposing shadow DOM highlights in highlightsFromPoint() (#7766)

Hi all, we propose putting `highlightsFromPoint()` on `CSS.highlights`, not `DocumentOrShadowRoot`, and adding an optional `options` dictionary parameter to the API. This dictionary has a key that maps to an array of `ShadowRoot` objects that can return highlights.
This approach is similar to how [`document.caretPositionFromPoint()` ](https://drafts.csswg.org/cssom-view/#dom-document-caretpositionfrompoint)and getHTML() interact with shadow DOM. 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/7766#issuecomment-2257149661 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 22:58:10 UTC