- From: Siye Liu via GitHub <sysbot+gh@w3.org>
- Date: Wed, 03 Apr 2024 21:11:08 +0000
- To: public-css-archive@w3.org
Based on all feedback, the best approach seems to be the `getComposedRanges()` style which takes in a set of `ShadowRoots` and `document.caretPositionFromPoint(ShadowRoot ...shadowRoots)` can return position in the given shadow roots. The alternative approach is to put the API on `DocumentOrShadowRoot`. But the con to this approach is that the usage might be cumbersome to get a position inside nested shadow roots (need to call the API on each level of shadow root). Web developer needs to adjust the current usage of current API to get position in a shadow root. The existing behavior violates the boundary of closed shadow tree so we should consider fixing it as well. -- GitHub Notification of comment by siliu1 Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/9932#issuecomment-2035599821 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Wednesday, 3 April 2024 21:11:09 UTC