Want to share your CSS expertise with others? Apply to the MDN Fellowship by April 1! http://mzl.la/MDNFellowship

mozilla

Revision 21877 of backface-visibility

  • Revision slug: CSS/backface-visibility
  • Revision title: backface-visibility
  • Revision id: 21877
  • Created:
  • Creator: teoli
  • Is current revision? No
  • Comment 42 words added, 17 words removed

Revision Content

Summary

The backface-visibility CSS property determines whether or not the back face of the element is visible when facing the user. The back face of an element always is a transparent background, letting, when visible, a mirror image of the front face be displayed.

There are cases when we do not want the front face of an element to be visible through the back face, like when doing a flipping card effect (setting two elements side-to-side).

  • {{ Xref_cssinitial() }} : visible
  • Applies to : block and inline elements
  • {{ Xref_cssinherited() }}: no
  • Media: {{ Xref_cssvisual() }}
  • {{ Xref_csscomputed() }}: same as specified value.

Syntax

backface-visibility: visibility

where :

visibility
Is a keyword indicating if the backface must be visible or not. It can have the following values:
visible The backface is visible
hidden The backface is not visible.

Examples

Specifications

Specification Status Comment
  {{ Spec2('CSS3 3D Transform') }}  

Browser compatibility

{{ CompatibilityTable() }}

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari (WebKit)
Basic support 12{{ property_prefix('-webkit') }} {{ CompatGeckoDesktop("10") }}{{ property_prefix('-moz') }} 10{{ property_prefix('-ms') }} {{ CompatNo() }} {{ CompatVersionUnknown() }}{{ property_prefix('-webkit') }}
Feature Android Firefox Mobile (Gecko) IE Phone Opera Mobile Safari Mobile
Basic support 3.0{{ property_prefix('-webkit') }} {{ CompatGeckoMobile("10") }}{{ property_prefix('-moz') }} {{ CompatUnknown() }} {{ CompatNo() }} {{ CompatVersionUnknown() }}{{ property_prefix('-webkit') }}

See also

Revision Source

<h2>Summary</h2>
<p>The <code>backface-visibility</code> <a href="/en/CSS" title="CSS">CSS</a> property determines whether or not the back face of the element is visible when facing the user. The back face of an element always is a transparent background, letting, when visible, a mirror image of the front face be displayed.</p>
<p>There are cases when we do not want the front face of an element to be visible through the back face, like when doing a flipping card effect (setting two elements side-to-side).</p>
<ul> <li>{{ Xref_cssinitial() }} : <code>visible</code></li> <li>Applies to : block and inline elements</li> <li>{{ Xref_cssinherited() }}: no</li> <li>Media: {{ Xref_cssvisual() }}</li> <li>{{ Xref_csscomputed() }}: same as <a href="/en/CSS/specified_value" title="specified value">specified value</a>.</li>
</ul><h2 name="Syntax">Syntax</h2>
<pre class="eval">backface-visibility: <em>visibility</em>
</pre>
<p>where :</p>
<dl> <dt style="margin-left: 40px;"><em>visibility</em></dt> <dd style="margin-left: 40px;">Is a keyword indicating if the backface must be visible or not. It can have the following values:<br> <table class="standard-table"> <tbody> <tr> <td><code>visible</code></td> <td>The backface is visible</td> </tr> <tr> <td><code>hidden</code></td> <td>The backface is not visible.</td> </tr> </tbody> </table> </dd>
</dl>
<h2 name="Examples">Examples</h2>
<h2 name="Specifications">Specifications</h2>
<table class="standard-table"> <thead> <tr style="background-color: rgb(255, 204, 255);"> <th scope="col">Specification</th> <th scope="col">Status</th> <th scope="col">Comment</th> </tr> </thead> <tbody> <tr> <td> </td> <td>{{ Spec2('CSS3 3D Transform') }}</td> <td> </td> </tr> </tbody>
</table>
<h2>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 (WebKit)</th> </tr> <tr> <td>Basic support</td> <td>12{{ property_prefix('-webkit') }}</td> <td>{{ CompatGeckoDesktop("10") }}{{ property_prefix('-moz') }}</td> <td>10{{ property_prefix('-ms') }}</td> <td>{{ CompatNo() }}</td> <td>{{ CompatVersionUnknown() }}{{ property_prefix('-webkit') }}</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 Phone</th> <th>Opera Mobile</th> <th>Safari Mobile</th> </tr> <tr> <td>Basic support</td> <td>3.0{{ property_prefix('-webkit') }}</td> <td>{{ CompatGeckoMobile("10") }}{{ property_prefix('-moz') }}</td> <td>{{ CompatUnknown() }}</td> <td>{{ CompatNo() }}</td> <td>{{ CompatVersionUnknown() }}{{ property_prefix('-webkit') }}</td> </tr> </tbody> </table>
</div>
<h2 name="See_also">See also</h2>
<ul> <li><a href="/en/CSS/CSS_Reference" title="CSS Reference">CSS Reference</a></li>
</ul>
Revert to this revision