CSS mask-clip property
Browser support · legacy reference
ChromePartial support
SafariPartial support
FirefoxPartial support
Internet ExplorerNot supported
EdgeNot supported
OperaPartial support
Description
CSS mask-clip property specifies the area affected by the mask.
Syntax
mask-clip : border-box | padding-box | content-box
Property values
border-boxDefault
-
In this case, the mask of all of the areas within border-box is painted such as content area, padding area, and border area.
- Try it
mask-clip: border-box; padding-box
-
In this case, the mask of the areas that are within padding-box are painted such as the padding and content areas.
- Try it
mask-clip: padding-box; content-box
-
Only mask of content-area is painted i.e. excluding the other two areas.
- Try it
mask-clip: content-box;
Applicable to
It applies to all elements