:fullscreen

  • Revision slug: Web/CSS/:fullscreen
  • Revision title: :fullscreen
  • Revision id: 394969
  • Created:
  • Creator: Sheppy
  • Is current revision? No
  • Comment mozallowfullscreen -> allowfullscreenMoved From CSS/:fullscreen to Web/CSS/: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.

Specifications

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

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() }} 6.0 {{ property_prefix("-webkit") }} (see notes)
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("allowfullscreen", "iframe") }}
  • {{ cssxref(":-moz-full-screen-ancestor") }}

Revision Source

<p>{{ CSSRef() }}</p>
<p>{{ SeeCompatTable() }}</p>
<h2 id="Summary">Summary</h2>
<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>
<h2 id="Examples">Examples</h2>
<p>Needs example.</p>
<h2 id="Specifications">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">Fullscreen </a></td>
      <td>{{ Spec2('Fullscreen') }}</td>
      <td>&nbsp;</td>
    </tr>
  </tbody>
</table>
<h2 id="Specification" name="Specification">Browser compatibility</h2>
<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>6.0 {{ property_prefix("-webkit") }} (see notes)</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>
<h3 id="Browser_notes">Browser notes</h3>
<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>
<h2 id="See_also">See also</h2>
<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("allowfullscreen", "iframe") }}</li>
  <li>{{ cssxref(":-moz-full-screen-ancestor") }}</li>
</ul>
Revert to this revision