mask-clip

Class Description

mask-clip-border

Sets mask-clip to border-box, clipping the mask at the element's border edge.

CSS Rules

.mask-clip-border {
  mask-clip: border-box;
}

Usage

<element class="mask-clip-border" />

Responsive

Prefix .mask-clip-border utility with a breakpoint variant (e.g., md:) to apply styles at specific screen sizes (Supported breakpoints are xm through 2xl).

<element class="md:mask-clip-border" />

States

States are generated dynamically at runtime and always come last. Append a state like :hover or :focus to the end of the class. This works in conjunction with breakpoints .

Supported pseudo-classes: :hover, :active, :focus, :focus-visible, :focus-within, :target, :checked, :disabled, and :group-hover.

<element class="mask-clip-border:hover" />

Group Hover Example

The :group-hover state applies styles when a parent element with the .group class is hovered.

<element class="group">
  <element class="mask-clip-border:group-hover">...</element>
</element>

Pseudo-Elements

The ::before and ::after utility classes are supported too. Granted that you add the mandatory content-before or content-after class in order for them to work.

<element class="content-before mask-clip-border::before" />

<element class="content-after mask-clip-border::after" />
.mask-clip-border Sets mask-clip to border-box, clipping the mask at the element's border edge.

mask-clip-padding

Sets mask-clip to padding-box, clipping the mask at the element's padding edge.

CSS Rules

.mask-clip-padding {
  mask-clip: padding-box;
}

Usage

<element class="mask-clip-padding" />

Responsive

Prefix .mask-clip-padding utility with a breakpoint variant (e.g., md:) to apply styles at specific screen sizes (Supported breakpoints are xm through 2xl).

<element class="md:mask-clip-padding" />

States

States are generated dynamically at runtime and always come last. Append a state like :hover or :focus to the end of the class. This works in conjunction with breakpoints .

Supported pseudo-classes: :hover, :active, :focus, :focus-visible, :focus-within, :target, :checked, :disabled, and :group-hover.

<element class="mask-clip-padding:hover" />

Group Hover Example

The :group-hover state applies styles when a parent element with the .group class is hovered.

<element class="group">
  <element class="mask-clip-padding:group-hover">...</element>
</element>

Pseudo-Elements

The ::before and ::after utility classes are supported too. Granted that you add the mandatory content-before or content-after class in order for them to work.

<element class="content-before mask-clip-padding::before" />

<element class="content-after mask-clip-padding::after" />
.mask-clip-padding Sets mask-clip to padding-box, clipping the mask at the element's padding edge.

mask-clip-content

Sets mask-clip to content-box, clipping the mask at the element's content edge.

CSS Rules

.mask-clip-content {
  mask-clip: content-box;
}

Usage

<element class="mask-clip-content" />

Responsive

Prefix .mask-clip-content utility with a breakpoint variant (e.g., md:) to apply styles at specific screen sizes (Supported breakpoints are xm through 2xl).

<element class="md:mask-clip-content" />

States

States are generated dynamically at runtime and always come last. Append a state like :hover or :focus to the end of the class. This works in conjunction with breakpoints .

Supported pseudo-classes: :hover, :active, :focus, :focus-visible, :focus-within, :target, :checked, :disabled, and :group-hover.

<element class="mask-clip-content:hover" />

Group Hover Example

The :group-hover state applies styles when a parent element with the .group class is hovered.

<element class="group">
  <element class="mask-clip-content:group-hover">...</element>
</element>

Pseudo-Elements

The ::before and ::after utility classes are supported too. Granted that you add the mandatory content-before or content-after class in order for them to work.

<element class="content-before mask-clip-content::before" />

<element class="content-after mask-clip-content::after" />
.mask-clip-content Sets mask-clip to content-box, clipping the mask at the element's content edge.

mask-clip-fill

Sets mask-clip to fill-box, clipping the mask to the SVG object's fill area.

CSS Rules

.mask-clip-fill {
  mask-clip: fill-box;
}

Usage

<element class="mask-clip-fill" />

Responsive

Prefix .mask-clip-fill utility with a breakpoint variant (e.g., md:) to apply styles at specific screen sizes (Supported breakpoints are xm through 2xl).

<element class="md:mask-clip-fill" />

States

States are generated dynamically at runtime and always come last. Append a state like :hover or :focus to the end of the class. This works in conjunction with breakpoints .

Supported pseudo-classes: :hover, :active, :focus, :focus-visible, :focus-within, :target, :checked, :disabled, and :group-hover.

<element class="mask-clip-fill:hover" />

Group Hover Example

The :group-hover state applies styles when a parent element with the .group class is hovered.

<element class="group">
  <element class="mask-clip-fill:group-hover">...</element>
</element>

Pseudo-Elements

The ::before and ::after utility classes are supported too. Granted that you add the mandatory content-before or content-after class in order for them to work.

<element class="content-before mask-clip-fill::before" />

<element class="content-after mask-clip-fill::after" />
.mask-clip-fill Sets mask-clip to fill-box, clipping the mask to the SVG object's fill area.

mask-clip-stroke

Sets mask-clip to stroke-box, clipping the mask to the SVG object's stroke area.

CSS Rules

.mask-clip-stroke {
  mask-clip: stroke-box;
}

Usage

<element class="mask-clip-stroke" />

Responsive

Prefix .mask-clip-stroke utility with a breakpoint variant (e.g., md:) to apply styles at specific screen sizes (Supported breakpoints are xm through 2xl).

<element class="md:mask-clip-stroke" />

States

States are generated dynamically at runtime and always come last. Append a state like :hover or :focus to the end of the class. This works in conjunction with breakpoints .

Supported pseudo-classes: :hover, :active, :focus, :focus-visible, :focus-within, :target, :checked, :disabled, and :group-hover.

<element class="mask-clip-stroke:hover" />

Group Hover Example

The :group-hover state applies styles when a parent element with the .group class is hovered.

<element class="group">
  <element class="mask-clip-stroke:group-hover">...</element>
</element>

Pseudo-Elements

The ::before and ::after utility classes are supported too. Granted that you add the mandatory content-before or content-after class in order for them to work.

<element class="content-before mask-clip-stroke::before" />

<element class="content-after mask-clip-stroke::after" />
.mask-clip-stroke Sets mask-clip to stroke-box, clipping the mask to the SVG object's stroke area.

mask-clip-view

Sets mask-clip to view-box, clipping the mask to the SVG viewport.

CSS Rules

.mask-clip-view {
  mask-clip: view-box;
}

Usage

<element class="mask-clip-view" />

Responsive

Prefix .mask-clip-view utility with a breakpoint variant (e.g., md:) to apply styles at specific screen sizes (Supported breakpoints are xm through 2xl).

<element class="md:mask-clip-view" />

States

States are generated dynamically at runtime and always come last. Append a state like :hover or :focus to the end of the class. This works in conjunction with breakpoints .

Supported pseudo-classes: :hover, :active, :focus, :focus-visible, :focus-within, :target, :checked, :disabled, and :group-hover.

<element class="mask-clip-view:hover" />

Group Hover Example

The :group-hover state applies styles when a parent element with the .group class is hovered.

<element class="group">
  <element class="mask-clip-view:group-hover">...</element>
</element>

Pseudo-Elements

The ::before and ::after utility classes are supported too. Granted that you add the mandatory content-before or content-after class in order for them to work.

<element class="content-before mask-clip-view::before" />

<element class="content-after mask-clip-view::after" />
.mask-clip-view Sets mask-clip to view-box, clipping the mask to the SVG viewport.

mask-no-clip

Sets mask-clip to no-clip, disabling clipping of the mask painting area.

CSS Rules

.mask-no-clip {
  mask-clip: no-clip;
}

Usage

<element class="mask-no-clip" />

Responsive

Prefix .mask-no-clip utility with a breakpoint variant (e.g., md:) to apply styles at specific screen sizes (Supported breakpoints are xm through 2xl).

<element class="md:mask-no-clip" />

States

States are generated dynamically at runtime and always come last. Append a state like :hover or :focus to the end of the class. This works in conjunction with breakpoints .

Supported pseudo-classes: :hover, :active, :focus, :focus-visible, :focus-within, :target, :checked, :disabled, and :group-hover.

<element class="mask-no-clip:hover" />

Group Hover Example

The :group-hover state applies styles when a parent element with the .group class is hovered.

<element class="group">
  <element class="mask-no-clip:group-hover">...</element>
</element>

Pseudo-Elements

The ::before and ::after utility classes are supported too. Granted that you add the mandatory content-before or content-after class in order for them to work.

<element class="content-before mask-no-clip::before" />

<element class="content-after mask-no-clip::after" />
.mask-no-clip Sets mask-clip to no-clip, disabling clipping of the mask painting area.