CSS

CSS Intro

CSS Intro Quiz

CSS Intro Exercise

CSS Basic

CSS Basic Quiz

CSS Basic Exercise

CSS Advance

CSS Advance Quiz

CSS Advance Exercise

CSS3

CSS3 Quiz

CSS3 Exercise

CSS Properties

CSS Functions

CSS Selectors

CSS mask mode Property

CSS mask-mode Property

 

 

The mask-mode property is used to specify whether the mask layer image should be treated as a luminance mask or as an alpha mask.

 

Default Value:-

 

Its default value is match-source.

 

Syntax:-

 

Its syntax is:- mask-mode: match-source | luminance | alpha | initial | inherit;

 

Further Explanation:-

 

Value Description
match-source If the mask-image property is an image then set mask-mode to alpha. If the mask-image property is an SVG mask element then use the mask element mask-type property.
luminance Use the luminance values of the mask image as the mask values
alpha Use the alpha values of the mask image as the mask values
initial Sets this property to its default value.
inherit Inherits this property from its parent element.

Code Explanation

All Tutorials related to CSS Properties

All Sections related to CSS