- From: Hayato Ito via GitHub <sysbot+gh@w3.org>
- Date: Tue, 10 Jan 2017 07:29:13 +0000
- To: public-css-archive@w3.org
Shadow DOM spec now defines the following methods on DocumentOrShadowRoot: https://w3c.github.io/webcomponents/spec/shadow/#extensions-to-the-documentorshadowroot-mixin ```webidl partial interface DocumentOrShadowRoot { Selection? getSelection(); Element? elementFromPoint(double x, double y); sequence<Element> elementsFromPoint(double x, double y); CaretPosition? caretPositionFromPoint(double x, double y); readonly attribute Element? activeElement; readonly attribute StyleSheetList styleSheets; }; ``` Out of them, it would be nice that CSS OM would define: ``` partial interface DocumentOrShadowRoot { readonly attribute StyleSheetList styleSheets; }; ``` CSS OM View should have: ```idl partial interface DocumentOrShadowRoot { Selection? getSelection(); Element? elementFromPoint(double x, double y); sequence<Element> elementsFromPoint(double x, double y); CaretPosition? caretPositionFromPoint(double x, double y); }; ``` DOM Standard should have: ``` partial interface DocumentOrShadowRoot { readonly attribute Element? activeElement; }; ``` ..and [Selection API](http://w3c.github.io/selection-api/) should have: ```idl partial interface DocumentOrShadowRoot { Selection? getSelection(); }; ``` -- GitHub Notification of comment by hayatoito Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/548#issuecomment-271505245 using your GitHub account
Received on Tuesday, 10 January 2017 07:29:19 UTC