files/en-us/web/css/reference/properties/-webkit-mask-box-image/index.md
{{ Non-standard_header() }}
The non-standard prefixed -webkit-mask-box-image shorthand property sets the mask image for an element's border box.
[!NOTE] This property is not standard and is not on any standards track. Consider using the {{CSSXref("mask-border")}} property instead.
This property is a shorthand for the following CSS properties:
The values includes the <image> to be used as the mask border, and optionally four border outset values and up to two border repeat styles.
/* default */
-webkit-mask-box-image: none;
/* image */
-webkit-mask-box-image: url("image.png");
/* image edge-offset */
-webkit-mask-box-image: url("image.png") 10 20 20 10;
-webkit-mask-box-image: url("image.png") 10px 20px 20px 10px;
/* image repeat-style */
-webkit-mask-box-image: url("image.png") space repeat;
/* image edge-offset repeat-style */
-webkit-mask-box-image: url("image.png") 10px 20px 20px 10px space repeat;
/* Global values */
-webkit-mask-box-image: inherit;
-webkit-mask-box-image: initial;
-webkit-mask-box-image: revert;
-webkit-mask-box-image: revert-layer;
-webkit-mask-box-image: unset;
none
repeat
stretch
round
space
The outset values, or edge offsets, define the distances from the top, right, bottom, and left edges of the image, in that order. The values can be set as {{cssxref("length")}}, {{cssxref("number")}}, or {{cssxref("percentage")}}, with numbers interpreted as pixel lengths.
Border repeat styles, when included, are interpreted in the order of <repeat-x> <repeat-y>. If only one value is declared, the value is the same for both axes. While similar to {{cssxref("background-repeat")}}, the cover and contain values are not supported.
none{{CSSSyntaxRaw(-webkit-mask-box-image = <mask-image-source> [ <mask-image-offset>{4} <mask-border-repeat>{1,2} ])}}
.example-one {
-webkit-mask-box-image: url("mask.png");
}
.example-two {
-webkit-mask-box-image: url("logo.png") 100px 100px 0px 0px round round;
}
Not part of any standard.
{{Compat}}
-webkit-mask-box-image