-moz-image-region

  • Raccourci de la révision : CSS/-moz-image-region
  • Titre de la révision : -moz-image-region
  • ID de la révision : 186245
  • Créé :
  • Créateur : Fredchat
  • Version actuelle ? Non
  • Commentaire /* Préparation de la traduction */

Contenu de la révision

{{template.CSSMozExtensionRef()}} {{template.Traduction_en_cours("CSS:-moz-image-region")}}

Summary

For certain XUL elements and pseudo-elements that use an image from the {{template.Cssxref("list-style-image")}} property, this property specifies a region of the image that is used in place of the whole image. This allows elements to use different pieces of the same image to improve performance.

The syntax is similar to the {{template.Cssxref("clip")}} property. All four values are relative to the upper left corner of the image.

  • Initial value: auto
  • Applies to: XUL {{template.XULElem("image")}} elements and {{template.Cssxref(":-moz-tree-image")}}, {{template.Cssxref(":-moz-tree-twisty")}}, and {{template.Cssxref(":-moz-tree-checkbox")}} pseudo-elements
  • Inherited: yes
  • Percentages: N/A
  • Computed value: For rect() values, a rect consisting of four computed lengths; otherwise as specified.

Syntax

-moz-image-region: rect(top, right, bottom, left);
{{ wiki.languages( { "en": "en/CSS/-moz-image-region", "pl": "pl/CSS/-moz-image-region" } ) }}

Source de la révision

<p> 
{{template.CSSMozExtensionRef()}}
{{template.Traduction_en_cours("CSS:-moz-image-region")}}
</p>
<h3 name="Summary"> Summary </h3>
<p>For certain XUL elements and pseudo-elements that use an image from the {{template.Cssxref("list-style-image")}} property, this property specifies a region of the image that is used in place of the whole image.  This allows elements to use different pieces of the same image to improve performance.
</p><p>The syntax is similar to the {{template.Cssxref("clip")}} property. All four values are relative to the upper left corner of the image.
</p>
<ul><li> Initial value: <code>auto</code>
</li><li> Applies to: XUL {{template.XULElem("image")}} elements and {{template.Cssxref(":-moz-tree-image")}}, {{template.Cssxref(":-moz-tree-twisty")}}, and {{template.Cssxref(":-moz-tree-checkbox")}} pseudo-elements
</li><li> Inherited: yes
</li><li> Percentages: N/A
</li><li> Computed value: For <code>rect()</code> values, a rect consisting of four computed lengths; otherwise as specified.
</li></ul>
<h3 name="Syntax"> Syntax </h3>
<pre class="eval">-moz-image-region: rect(<i>top</i>, <i>right</i>, <i>bottom</i>, <i>left</i>);
</pre>{{ wiki.languages( { "en": "en/CSS/-moz-image-region", "pl": "pl/CSS/-moz-image-region" } ) }}
Revenir à cette révision