Re: [w3ctag/design-reviews] CSS.highlights.highlightsFromPoint API (Issue #1043)

Hi @xiaochengh, thanks for discussing the topic.

The reason for implementing `highlightsFromPoint` has been discussed with the CSSWG [here](https://github.com/w3c/csswg-drafts/issues/7513#issuecomment-1248320696) before. Just wanted to make clear that by implementing this API we're not discarding implementing an event-based alternative in the future if problems arise or we find other use cases that could apply to that specific scenario.

Summarizing, we chose to move forward with `highlightsFromPoint` because it satisfies various use cases (for example, interactions with custom spellcheck, annotation popups over words, interactions with custom find-on-page, to name a few), and it's a much simpler approach than defining a whole new model for events (as was discussed in [the same issue linked above](https://github.com/w3c/csswg-drafts/issues/7513)).

Let me know if you'd like me to expand on some parts of my comment or if there's any other questions.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/w3ctag/design-reviews/issues/1043#issuecomment-2655061092
You are receiving this because you are subscribed to this thread.

Message ID: <w3ctag/design-reviews/issues/1043/2655061092@github.com>

Received on Wednesday, 12 February 2025 23:23:35 UTC