Re: [csswg-drafts] [cssom-view] Allow elementFromPoint and elementsFromPoint to traverse shadow roots (#10992)

The CSS Working Group just discussed `[cssom-view] Allow elementFromPoint and elementsFromPoint to traverse shadow roots`, and agreed to the following:

* `RESOLVED: add shadowRoots param to ePFP() to match caretPFP()`

<details><summary>The full IRC log of that discussion</summary>
&lt;TabAtkins> kbabbitt: request is to have elementFromPoint() be able to traverse shadows, so you can get the "real" element when it's in a shadow<br>
&lt;TabAtkins> astearns: simialr to caretPositionFromPoint(), i see<br>
&lt;emilio> q+<br>
&lt;TabAtkins> proposed: add shadowRoots param to ePFP() to match caretPFP()<br>
&lt;ydaniv> +1<br>
&lt;astearns> ack emilio<br>
&lt;TabAtkins> emilio: somewhat related, Gecko has a way of getting raw nodes from point<br>
&lt;TabAtkins> emilio: text nodes, etc<br>
&lt;TabAtkins> emilio: it always felt kinda funny that elementFromPoint() wouldn't giv eyou that.<br>
&lt;TabAtkins> emilio: wonder if that owuld be useful<br>
&lt;TabAtkins> emilio: nodesFromPoint(), returning the actual node when the point is text, rather than closest element<br>
&lt;TabAtkins> astearns: seems useful to me, open an issue?<br>
&lt;TabAtkins> emilio: we also have the ability to ask what elements/nodes intersect a rect, needed for finger tap testing<br>
&lt;TabAtkins> emilio: I'll file an issue<br>
&lt;TabAtkins> RESOLVED: add shadowRoots param to ePFP() to match caretPFP()<br>
</details>


-- 
GitHub Notification of comment by css-meeting-bot
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/10992#issuecomment-2623143244 using your GitHub account


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

Received on Wednesday, 29 January 2025 23:19:20 UTC