:fullscreen

  • Revision slug: CSS/:fullscreen
  • Revision title: :fullscreen
  • Revision id: 47002
  • Created:
  • Creator: teoli
  • Is current revision? No
  • Comment page display name changed to ':fullscreen'

Revision Content

{{ CSSRef() }}

{{ SeeCompatTable() }}

Summary

The :fullscreen CSS pseudo-class applies to any element that's currently being displayed in full-screen mode. See Using full-screen mode for details.

The W3C proposal use the single word :fullscreen, that is without a dash, but both the Webkit and Gecko experimental implementations use a prefixed variant with two words linked by a dash: -webkit-full-screen and -moz-full-screen, respectively.

Examples

Needs example.

Specification

Specifications

Specification Status Comment
WHATWG Fullscreen {{ Spec2('WHATWG Fullscreen') }}  

https://dvcs.w3.org/hg/fullscreen/ra...en-ancestor%29

Browser compatibility

{{ CompatibilityTable() }}

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari
Basic support 15.0 {{ property_prefix("-webkit") }} (see notes) {{ CompatGeckoDesktop("9.0") }}{{ property_prefix("-moz") }} (see notes) {{ CompatNo() }} {{ CompatNo() }} {{ CompatNo() }}
Feature Android Firefox Mobile (Gecko) IE Mobile Opera Mobile Safari Mobile
Basic support {{ CompatUnknown() }} {{ CompatGeckoMobile("9.0") }} {{ CompatNo() }} {{ CompatNo() }} {{ CompatNo() }}

Browser notes

Both the Webkit and Gecko prefixed versions have a dash between full and screen, but he W3C proposal use one single word::fullscreen, :-webkit-full-screen, :-moz-full-screen.

See also

  • Using full-screen mode
  • {{ domxref("element.mozRequestFullScreen()") }}
  • {{ domxref("document.mozCancelFullScreen()") }}
  • {{ domxref("document.mozFullScreen") }}
  • {{ domxref("document.mozFullScreenElement") }}
  • {{ domxref("document.mozFullScreenEnabled") }}
  • {{ HTMLAttrXRef("mozallowfullscreen", "iframe") }}
  • {{ cssxref(":-moz-full-screen-ancestor") }}

Revision Source

<p>{{ CSSRef() }}</p>
<p>{{ SeeCompatTable() }}</p>
<h3>Summary</h3>
<p>The<code> :fullscreen </code>CSS <a href="/en/CSS/Pseudo-classes" title="en/CSS/Pseudo-classes">pseudo-class</a> applies to any element that's currently being displayed in full-screen mode. See <a href="/en/DOM/Using_full-screen_mode" title="en/DOM/Using full-screen mode">Using full-screen mode</a> for details.</p>
<div class="note">The W3C proposal use the single word <code>:fullscreen</code>, that is without a dash, but both the Webkit and Gecko experimental implementations use a prefixed variant with two words linked by a dash: <code>-webkit-full-screen</code> and <code>-moz-full-screen</code>, respectively.</div>
<h3>Examples</h3>
<p>Needs example.</p>
<h3 name="Specification">Specification</h3>
<h2>Specifications</h2>
<table class="standard-table"> <thead> <tr> <th scope="col">Specification</th> <th scope="col">Status</th> <th scope="col">Comment</th> </tr> </thead> <tbody> <tr> <td><a class="link-https" href="https://dvcs.w3.org/hg/fullscreen/raw-file/tip/Overview.html#selectors-%28:fullscreen-and-:fullscreen-ancestor%29" title="https://dvcs.w3.org/hg/fullscreen/raw-file/tip/Overview.html#selectors-%28:fullscreen-and-:fullscreen-ancestor%29">WHATWG Fullscreen </a></td> <td>{{ Spec2('WHATWG Fullscreen') }}</td> <td> </td> </tr> </tbody>
</table>
<p><a class=" link-https" href="https://dvcs.w3.org/hg/fullscreen/raw-file/tip/Overview.html#selectors-%28:fullscreen-and-:fullscreen-ancestor%29" rel="freelink">https://dvcs.w3.org/hg/fullscreen/ra...en-ancestor%29</a></p>
<h3 name="Specification">Browser compatibility</h3>
<p>{{ CompatibilityTable() }}</p>
<div id="compat-desktop"> <table class="compat-table"> <tbody> <tr> <th>Feature</th> <th>Chrome</th> <th>Firefox (Gecko)</th> <th>Internet Explorer</th> <th>Opera</th> <th>Safari</th> </tr> <tr> <td>Basic support</td> <td>15.0 {{ property_prefix("-webkit") }} (see notes)</td> <td>{{ CompatGeckoDesktop("9.0") }}{{ property_prefix("-moz") }} (see notes)</td> <td>{{ CompatNo() }}</td> <td>{{ CompatNo() }}</td> <td>{{ CompatNo() }}</td> </tr> </tbody> </table>
</div>
<div id="compat-mobile"> <table class="compat-table"> <tbody> <tr> <th>Feature</th> <th>Android</th> <th>Firefox Mobile (Gecko)</th> <th>IE Mobile</th> <th>Opera Mobile</th> <th>Safari Mobile</th> </tr> <tr> <td>Basic support</td> <td>{{ CompatUnknown() }}</td> <td>{{ CompatGeckoMobile("9.0") }}</td> <td>{{ CompatNo() }}</td> <td>{{ CompatNo() }}</td> <td>{{ CompatNo() }}</td> </tr> </tbody> </table>
</div>
<h4>Browser notes</h4>
<p>Both the Webkit and Gecko prefixed versions have a dash between <em>full</em> and <em>screen</em>, but he W3C proposal use one single word:<code>:fullscreen</code>, <code>:-webkit-full-screen</code>, <code>:-moz-full-screen</code>.</p>
<h3>See also</h3>
<ul> <li><a href="/en/DOM/Using_full-screen_mode" title="en/DOM/Using full-screen mode">Using full-screen mode</a></li> <li>{{ domxref("element.mozRequestFullScreen()") }}</li> <li>{{ domxref("document.mozCancelFullScreen()") }}</li> <li>{{ domxref("document.mozFullScreen") }}</li> <li>{{ domxref("document.mozFullScreenElement") }}</li> <li>{{ domxref("document.mozFullScreenEnabled") }}</li> <li>{{ HTMLAttrXRef("mozallowfullscreen", "iframe") }}</li> <li>{{ cssxref(":-moz-full-screen-ancestor") }}</li>
</ul>
Revert to this revision