Non-standard: This feature is non-standard and is not on a standards track. Do not use it on production sites facing the Web: it will not work for every user. There may also be large incompatibilities between implementations and the behavior may change in the future.
For certain XUL elements and pseudo-elements that use an image from the 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.
/* Keyword value */ -moz-image-region: auto; /* <shape> value */ -moz-image-region: rect(0, 8px, 4px, 4px); /* Global values */ -moz-image-region: inherit; -moz-image-region: initial; -moz-image-region: unset;
The syntax is similar to the 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 -moz-image-rect()
.