mozilla

Revision 145434 of -moz-image-region

  • Revision slug: CSS/-moz-image-region
  • Revision title: -moz-image-region
  • Revision id: 145434
  • Created:
  • Creator: Cananian
  • Is current revision? No
  • Comment Migrated from Mozilla CSS Extensions page.

Revision Content

{{template.CSSMozExtensionRef()}}

Summary

For elements that have an image, this property sets the area of the image that is used. You can set multiple elements to use the same image but use a different region of the image, reducing the amount of memory required. You can change this property to simulate animation. The syntax is similar to the clip property. All four values are relative to the upper left corner of the image.

* Initial value: content-box * Applies to: all elements * Inherited: no * Percentages: N/A * Computed value: as specified

Syntax

-moz-image-region: rect(top, right, bottom, left);

Revision Source

<p> 
{{template.CSSMozExtensionRef()}}
</p>
<h3 name="Summary"> Summary </h3>
<p>For elements that have an image, this property sets the area of the
image that is used. You can set multiple elements to use the same
image but use a different region of the image, reducing the amount of
memory required. You can change this property to simulate
animation. The syntax is similar to the clip property. All four values
are relative to the upper left corner of the image.
</p><p><span class="comment">* Initial value: content-box * Applies to: all elements * Inherited: no * Percentages: N/A * Computed value: as specified</span>
</p>
<h3 name="Syntax"> Syntax </h3>
<pre class="eval">-moz-image-region: rect(top, right, bottom, left);
</pre>
Revert to this revision