mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
DocumentOrShadowRoot mixin
This commit is contained in:
parent
9b20187793
commit
cbcf21c248
4 changed files with 124 additions and 109 deletions
|
@ -132,7 +132,6 @@ partial /*sealed*/ interface Document {
|
|||
|
||||
// user interaction
|
||||
readonly attribute Window?/*Proxy?*/ defaultView;
|
||||
readonly attribute Element? activeElement;
|
||||
boolean hasFocus();
|
||||
// [CEReactions]
|
||||
// attribute DOMString designMode;
|
||||
|
@ -199,17 +198,6 @@ partial interface Document {
|
|||
TouchList createTouchList(Touch... touches);
|
||||
};
|
||||
|
||||
// https://drafts.csswg.org/cssom-view/#dom-document-elementfrompoint
|
||||
partial interface Document {
|
||||
Element? elementFromPoint(double x, double y);
|
||||
sequence<Element> elementsFromPoint(double x, double y);
|
||||
};
|
||||
|
||||
// https://drafts.csswg.org/cssom/#extensions-to-the-document-interface
|
||||
partial interface Document {
|
||||
[SameObject] readonly attribute StyleSheetList styleSheets;
|
||||
};
|
||||
|
||||
// https://fullscreen.spec.whatwg.org/#api
|
||||
partial interface Document {
|
||||
[LenientSetter] readonly attribute boolean fullscreenEnabled;
|
||||
|
@ -221,3 +209,5 @@ partial interface Document {
|
|||
attribute EventHandler onfullscreenchange;
|
||||
attribute EventHandler onfullscreenerror;
|
||||
};
|
||||
|
||||
Document implements DocumentOrShadowRoot;
|
||||
|
|
18
components/script/dom/webidls/DocumentOrShadowRoot.webidl
Normal file
18
components/script/dom/webidls/DocumentOrShadowRoot.webidl
Normal file
|
@ -0,0 +1,18 @@
|
|||
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
|
||||
/*
|
||||
* The origin of this IDL file is
|
||||
* https://dom.spec.whatwg.org/#documentorshadowroot
|
||||
* https://w3c.github.io/webcomponents/spec/shadow/#extensions-to-the-documentorshadowroot-mixin
|
||||
*/
|
||||
|
||||
[NoInterfaceObject]
|
||||
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;
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue