Gecko:FullScreenAPI: Difference between revisions

(→‎Security: noted security review, sorted security sections newest first)
Line 116: Line 116:


While a Document is in the full-screen state, and the document's current full-screen 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 full-screen state has the 'full-screen' pseudoclass applied.
While a Document is in the full-screen state, and the document's current full-screen 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 full-screen state has the 'full-screen' pseudoclass applied.
==== full-screen-ancestor pseudo-class ====
New CSS pseudo-class:
* :full-screen-ancestor
While a Document is in the full-screen state, and the document's current full-screen element is an element in the document, the 'full-screen-ancestor' pseudoclass applies to ancestors of the full-screen element.


==== full-screen media query  ====
==== full-screen media query  ====
Line 130: Line 136:


While a Document is in the full-screen state, the full-screen media type is active for the document.
While a Document is in the full-screen state, the full-screen media type is active for the document.
''cpearce: We're adding a :full-screen-ancestor pseudo class as well which applies to all elements which are ancestors of the full-screen element.''


==== UA stylesheet rules ====
==== UA stylesheet rules ====
Confirmed users
91

edits