Siye Liu

Results 5 comments of Siye Liu

CSS working group discussed this API (details in https://github.com/w3c/csswg-drafts/issues/9932). The proposal is to add a new `shadowRoots` parameter to the API so that only the provided shadow roots can be...

Asked opinions from web developer's point of view and got some feedback. Web developer's basic requirement is to be able to get a caret position inside shadow roots. The Firefox...

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...

Created PR https://github.com/w3c/csswg-drafts/pull/10200 to update the spec. @zcorpan would you mind taking a look? Thank you!

https://github.com/w3c/csswg-drafts/pull/10307 was merged. `CaretPosition` is not backed by a live range now. @annevk FYI. Thanks!