Skip to main content

Mask Origin

Utilities for controlling the origin of an element's mask.

CSS Property:mask-origin
Classes:3

Mask Origin Classes

ClassCSS
mask-origin-bordermask-origin: border-box;
mask-origin-paddingmask-origin: padding-box;
mask-origin-contentmask-origin: content-box;

Arbitrary Values

You can use arbitrary values with square bracket notation when you need a specific value not included in the default scale.

[mask-origin:value]

Responsive Variants

Apply mask origin utilities at specific breakpoints using responsive prefixes.

BreakpointPrefixExample
640px+sm:sm:mask-origin-border
768px+md:md:mask-origin-border
1024px+lg:lg:mask-origin-border
1280px+xl:xl:mask-origin-border
1536px+2xl:2xl:mask-origin-border