mozilla

Revision 145436 of -moz-image-region

  • Revision slug: CSS/-moz-image-region
  • Revision title: -moz-image-region
  • Revision id: 145436
  • Created:
  • Creator: DBaron
  • Is current revision? No
  • Comment significant changes / corerctions, plus the table

Revision Content

{{template.CSSMozExtensionRef()}}

Summary

For certain XUL elements and pseudo-elements that use an image from the [{{mediawiki.external('CSS:list-style-image|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 image elements and :-moz-tree-image, :-moz-tree-twisty, and :-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);

Revision Source

<p> 
{{template.CSSMozExtensionRef()}}
</p>
<h3 name="Summary"> Summary </h3>
<p>For certain XUL elements and pseudo-elements that use an image from the [{{mediawiki.external('CSS:list-style-image|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: auto
</li><li> Applies to: XUL image elements and :-moz-tree-image, :-moz-tree-twisty, and :-moz-tree-checkbox pseudo-elements
</li><li> Inherited: yes
</li><li> Percentages: N/A
</li><li> Computed value: For rect() 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>
Revert to this revision