styleditor.net styleditor.net styleditor.net styleditor.net עברית accent-coloralignalignment-baselineallanchoranimationappearanceaspect-ratiobackdrop-filterbackface-visibilitybackgroundbaselineblock-sizeborderbottomboxbreakcaption-sidecaretclearclipcolorcolumncolumnscontaincontainercontentcornercountercursorcxcyddirectiondisplaydominant-baselinedynamic-range-limitempty-cellsfield-sizingfillfilterflexfloatfloodfontforced-color-adjustgapgridheighthyphenatehyphensimageime-modeinitial-letterinline-sizeinsetinteractivityinterestinterpolate-sizeisolationjustifyleftletter-spacinglighting-colorlinelistmarginmarkermaskmask-clipmask-compositemask-imagemask-modemask-originmask-positionmask-repeatmask-sizemask-typemathmaxminmix-blend-modeobjectoffsetopacityorderorphansoutlineoverflowoverlayoverscrollpaddingpagepaint-orderperspectiveplacepointer-eventspositionprint-color-adjustquotesrreadingresizerightrotaterowrubyrulerxryscalescrollscrollbarshapespeakstopstroketab-sizetable-layouttexttimelinetoptouch-actiontransformtransitiontranslatetrigger-scopeunicode-bidiuser-selectvector-effectvertical-alignviewvisibilitywhitewidowswidthwill-changewordwriting-modexyz-indexzoom

mask-size CSS Property

The mask-size property specifies the size of the mask image. Width and height can be set explicitly, or keywords (auto, cover, contain) can be used. Parallel to background-size. .cover-mask { mask-size: cover; } .half { mask-image: url("icon.svg"); mask-size: 50% auto; } min:0 max:9999 step:1 units:% | px | em | rem | vw | vh autoThe dimension is preserved at the image's intrinsic size (default value). If only one dimension is auto, it is derived from preserving aspect ratio.coverThe image is scaled to cover the entire mask area while preserving aspect ratio; parts may overflow.containThe image is scaled to fit entirely within the mask area while preserving aspect ratio. CSS Masking Module Level 1 Editor's Draft <length-percentage> W3CMDN images Show all code Edit CSS online The plugin that remembers hundreds of CSS items for you Every CSS property — in a live demonstration The bilingual CSS reference
definitionexamplessyntaxmodulespecificationvalue typessourcesvisual demonstration