Changes

Jump to: navigation, search

Gecko:FullScreenAPI

130 bytes removed, 01:06, 22 March 2011
Proposed Specification
Each document has an optional "current fullscreen element".
New methods method of Document:
* void cancelFullScreen()
The current fullscreen element for the document is cleared.
 
New attributes of Element:
 
* readonly attribute unsigned short ALLOW_KEYBOARD_INPUT = 1
New methods of Element:
* void requestFullScreen(unsigned short flags)
The current fullscreen element for the document is set to this element.
Typically the user agent would react by transitioning the Document to the fullscreen state, or by presenting asynchronous confirmation UI and transitioning to the fullscreen state if/when the user responds affirmatively. However, the user agent is not required to do anything at all in response to requestFullScreen. The user agent's behavior is allowed to vary depending on whether requestFullScreen is called during a user event (e.g. a mouse click handler).
When the ALLOW_KEYBOARD_INPUT flag is not specified* void requestFullScreenWithKeys() As requestFullScreen, requestFullScreen but hints to the UA that while in fullscreen state, the toplevel browsing context for this Document should have keys disabled. While keys are disabled, there may be a reduced risk of spoofing attacks inducing the user to input inappropriate data, and the UA may choose to relax restrictions on entering fullscreen state with keys disabled.
New DOM attribute of Document:
The 'onfullscreenchange' event handling attribute is supported on HTML elements.
New CSS psuedoclassespsuedoclass:
* :full-screen
While a Document is in the fullscreen state, and the document's current fullscreen element is an element in the document, the 'full-screen' pseudoclass applies to that element. Also, an <iframe>, <object> or <embed> element whose child browsing context's Document is in the fullscreen state has the 'full-screen' pseudoclass applied.
New CSS media type: * :full-screen-documentfullscreen
While a Document is in the fullscreen state, the 'full-screen-fullscreen media type is active for the document' pseudoclass applies to all elements of that Document.
Suggested UA stylesheet rule:
/* In fullscreen mode, if the root element itself is not fullscreen then
we should hide the viewport scrollbar. */
@media fullscreen { :root:full-screen-document:not(:full-screen) { overflow:hidden; }
}
1,295
edits

Navigation menu