mozilla

Revision 286746 of transform-style

  • Revision slug: CSS/transform-style
  • Revision title: transform-style
  • Revision id: 286746
  • Created:
  • Creator: CutenessOverload
  • Is current revision? No
  • Comment http://blogs.msdn.com/b/ie/archive/2012/05/31/windows-release-preview-the-sixth-ie10-platform-preview.aspx (Gotta copypasta...); 6 words removed

Revision Content

{{ draft() }}

{{ SeeCompatTable() }}

Summary

The transform-style CSS property determines if the children of the element are positioned in the 3D-space or are flattened in the plane of the element.

If flattened, the children will not exist on their own in the 3D-space.

As this property is not inherited, it must be set for all non-leaf descendants of the element.

<style type="text/css"></style>
  • {{ Xref_cssinitial() }}: flat
  • Applies to : block and inline elements
  • {{ Xref_cssinherited() }}: no
  • Media: {{ Xref_cssvisual() }}
  • {{ Xref_csscomputed() }}: same as specified value.

Syntax

transform-style: preserve-3d              or
transform-style: flat

where :

preserve-3d
Indicates that the children of the element should be positioned in the 3D-space.
flat
Indicates that the children of the element are lying in the plane of the element itself.

Examples

Specifications

Specification Status Comment
CSS 3D Transforms Level 3 {{ Spec2('CSS3 3D Transforms') }}  

Browser compatibility

{{ CompatibilityTable() }}

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari (WebKit)
Basic support 12{{ property_prefix('-webkit') }} {{ CompatGeckoDesktop(10) }}{{ property_prefix('-moz') }} 10 {{ 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

<p>{{ draft() }}</p>
<p>{{ SeeCompatTable() }}</p>
<h2 id="Summary">Summary</h2>
<p>The <code>transform-style</code> <a href="/en/CSS" title="CSS">CSS</a> property determines if the children of the element are positioned in the 3D-space or are flattened in the plane of the element.</p>
<p>If flattened, the children will not exist on their own in the 3D-space.</p>
<p>As this property is not inherited, it must be set for all non-leaf descendants of the element.</p>
<nobr>
<style type="text/css"><![CDATA[.cssprop {
  display:table;
  padding: 0.4em;
  border-left:0.15em solid;
  background-color:#eeeeff
}
.cssprop li {
 display:table-row;
 padding: 3px;
 margin:0;
}
.cssprop li dfn {
  display:table-cell;
  padding: 0 5px;
  border-bottom: none;
  cursor:inherit;
}

]]></style>
<ul class="cssprop"> <li><dfn>{{ Xref_cssinitial() }}:</dfn> <code>flat</code></li> <li><dfn>Applies to :</dfn> block and inline elements</li> <li><dfn>{{ Xref_cssinherited() }}:</dfn> no</li> <li><dfn>Media:</dfn> {{ Xref_cssvisual() }}</li> <li><dfn>{{ Xref_csscomputed() }}:</dfn> same as <a href="/en/CSS/specified_value" title="specified value">specified value</a>.</li>
</ul></nobr><h2 id="Syntax" name="Syntax">Syntax</h2>
<pre>transform-style: preserve-3d <em>             or
</em>transform-style: flat
</pre>
<p>where :</p>
<p><code><span id="cke_bm_119S" style="display: none;"> </span></code></p>
<dl> <dt><code>preserve-3d</code></dt> <dd>Indicates that the children of the element should be positioned in the 3D-space.</dd> <dt><code>flat</code></dt> <dd>Indicates that the children of the element are lying in the plane of the element itself.</dd> <br>
</dl><h2 id="Examples" name="Examples">Examples</h2>
<h2 id="Specifications" 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><a class="external" href="http://dev.w3.org/csswg/css3-3d-transforms/#perspective-origin-property" title="http://dev.w3.org/csswg/css3-3d-transforms/#perspective-origin-property">CSS 3D Transforms Level 3</a></td> <td>{{ Spec2('CSS3 3D Transforms') }}</td> <td> </td> </tr> </tbody>
</table>
<h2 id="Browser_compatibility">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</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 id="See_also" 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