CSS mask-origin
The mask-origin property specifies the positioning area of a CSS mask. By default, the mask origin is set to border-box, which means the mask is positioned relative to the border-box of the element. However, you can change this positioning by using the mask-origin property.
There are three possible values for the mask-origin property:
border-box: The mask is positioned relative to the border-box of the element (default).padding-box: The mask is positioned relative to the padding-box of the element.content-box: The mask is positioned relative to the content-box of the element.
Let's see some examples to better understand how the mask-origin property works:
In this example, the mask-origin property is set to border-box, so the mask is positioned relative to the border-box of the element.
In this example, the mask-origin property is set to padding-box, so the mask is positioned relative to the padding-box of the element.
In this example, the mask-origin property is set to content-box, so the mask is positioned relative to the content-box of the element.