The mask
CSS shorthand property hides an element (partially or fully) by masking or clipping the image at specific points.
This property is a shorthand for the following CSS properties:
<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.
Initial values | as each of the properties of the shorthand:
|
Applies to | Views only. It may work on some other elements, but it is recommended that only use it on <view> |
Inherited | No |
Percentages | as each of the properties of the shorthand:
|
Creates stacking context | yes |
mask-type
not supported in Lynx.mask-image
not support SVG reference.LCD tables only load in the browser