-
Notifications
You must be signed in to change notification settings - Fork 715
[cssom] styleSheets IDL attribute must exist on DocumentOrShadowRoot, not Document #548
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I suspect it's up to @zcorpan to define this? |
Yeah those CSS OM view methods are also supposed to be on |
Shadow DOM spec now defines the following methods on DocumentOrShadowRoot: 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:
CSS OM View should have: partial interface DocumentOrShadowRoot {
Element? elementFromPoint(double x, double y);
sequence<Element> elementsFromPoint(double x, double y);
CaretPosition? caretPositionFromPoint(double x, double y);
}; HTML Standard should have:
..and Selection API should have: partial interface DocumentOrShadowRoot {
Selection? getSelection();
}; |
|
Thanks. I am sorry for the wrong information. I have updated my comment directly. |
@emilio : could you fix this in CSS OM? |
Yes, happy to. |
CSS OM spec should directly define
styleSheets
IDL attribute onDocumentOrShadowRoot
interface to match the latest shadow DOM specification.The text was updated successfully, but these errors were encountered: