mirror of
https://github.com/servo/servo.git
synced 2025-08-07 14:35:33 +01:00
Add support for fullscreen #10102
This commit is contained in:
parent
c3c086e521
commit
55f0e56224
33 changed files with 454 additions and 30 deletions
|
@ -190,3 +190,15 @@ partial interface Document {
|
|||
partial interface Document {
|
||||
[SameObject] readonly attribute StyleSheetList styleSheets;
|
||||
};
|
||||
|
||||
// https://fullscreen.spec.whatwg.org/#api
|
||||
partial interface Document {
|
||||
[LenientSetter] readonly attribute boolean fullscreenEnabled;
|
||||
[LenientSetter] readonly attribute Element? fullscreenElement;
|
||||
[LenientSetter] readonly attribute boolean fullscreen; // historical
|
||||
|
||||
Promise<void> exitFullscreen();
|
||||
|
||||
attribute EventHandler onfullscreenchange;
|
||||
attribute EventHandler onfullscreenerror;
|
||||
};
|
||||
|
|
|
@ -110,6 +110,11 @@ partial interface Element {
|
|||
attribute DOMString outerHTML;
|
||||
};
|
||||
|
||||
// https://fullscreen.spec.whatwg.org/#api
|
||||
partial interface Element {
|
||||
Promise<void> requestFullscreen();
|
||||
};
|
||||
|
||||
Element implements ChildNode;
|
||||
Element implements NonDocumentTypeChildNode;
|
||||
Element implements ParentNode;
|
||||
|
|
|
@ -13,7 +13,7 @@ interface HTMLIFrameElement : HTMLElement {
|
|||
[SameObject, PutForwards=value]
|
||||
readonly attribute DOMTokenList sandbox;
|
||||
// attribute boolean seamless;
|
||||
// attribute boolean allowFullscreen;
|
||||
attribute boolean allowFullscreen;
|
||||
attribute DOMString width;
|
||||
attribute DOMString height;
|
||||
readonly attribute Document? contentDocument;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue