mask
Introduction
The mask CSS shorthand property hides an element (partially or fully) by masking or clipping the image at specific points.
Constituent properties
This property is a shorthand for the following CSS properties:
- mask-clip
- mask-image
- mask-origin
- mask-position
- mask-repeat
- mask-size
Syntax
Values
<mask-reference>
Sets the mask image source. See mask-image.
<position>
Sets the position of the mask image. See mask-position.
<bg-size>
Sets the size of the mask image. See mask-size.
<repeat-style>
Sets the repetition of the mask image. See mask-repeat.
<geometry-box>
If only one <geometry-box value is given, it sets both mask-origin and mask-clip. If two <geometry-box> values are present, then the first sets mask-origin and the second sets mask-clip.
<geometry-box> | no-clip
Sets the area that is affected by the mask image. See mask-clip.
Formal definition
Formal Syntax
Difference with the Web
mask-typenot supported in Lynx.mask-imagenot support SVG reference.- only support border-box, padding-box and content-box.
Compatibility
LCD tables only load in the browser