[csswg-drafts] Pull Request: [css-highlight-api] Change highlightsFromPoint return type #12031

atanassov has just labeled a pull request from ffiori for https://github.com/w3c/csswg-drafts as "Agenda+":

== [css-highlight-api] Change highlightsFromPoint return type #12031 ==
[css-highlight-api] Change highlightsFromPoint return type #12031

As discussed and resolved in #12031, this PR changes the return type for `highlightsFromPoint` to `sequence<HighlightHitResult>` to include the ranges that are hit at a given point in addition to the custom highlights.

This PR also resolves the following issues:

- #12045: Add a step where highlightsFromPoint returns the empty sequence if the topmost box hit by coordinates x,y has an element associated to it that's in a shadow tree whose shadow root is not in the list of shadowRoots passed as an option.

- #12003: In the steps for adding an AbstractRange to the ranges attribute of HighlightHitResult, add the necessity for the abstract range to be valid if it's a StaticRange before constructing a Range, and also add a sentence to make sure the Range was successfully constructed.

See https://github.com/w3c/csswg-drafts/pull/12215


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

Received on Friday, 20 June 2025 21:20:10 UTC