Path: blob/main/files/en-us/web/css/-moz-image-region/index.md
6565 views
------{{CSSRef}}{{Non-standard_Header}}
For certain XUL elements and pseudo-elements that use an image from the {{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 {{CSSxRef("clip")}} property. All four values are relative to the upper left corner of the image.
Note: For a system that works on any background, see {{CSSxRef("-moz-image-rect")}}.
Syntax
Values
auto: Automatically defines the region of the image to use.
: A shape defining the part of the image to use. The
rect()function defines a rectangle to use as shape. Its parameters define the top, right, bottom, and left offsets of the edges of the image, in this order.
Formal definition
{{CSSInfo}}
Formal syntax
Examples
Clipping an image
Specifications
Not part of any standard.
Browser compatibility
{{Compat}}
See also
{{CSSxRef("-moz-image-rect")}}