Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

List of supported style properties

This section provides a list of the currently supported style properties in vizia. This excludes layout properties which are detailed in the layout section of this guide.

For the corresponding modifier name, replace any hyphens with underscores. For example, background-color in CSS becomes the background_color() modifier in Rust.

PropertyTypeInitial ValueInheritedAnimatable
displayDisplayflexNoYes
visibilityVisibilityvisibleNoNo
overflowOverflowvisibleNoNo
overflow-xOverflowvisibleNoNo
overflow-yOverflowvisibleNoNo
clip-pathClipPathnoneNoYes
opacityOpacity1.0NoYes
z-indexi320NoNo
blend-modeBlendModenormalNoNo
backdrop-filterFilternoneNoYes
filterFilternoneNoYes
background-colorColortransparentNoYes
background-imageVec<BackgroundImage>noneNoYes
background-sizeVec<BackgroundSize>auto autoNoYes
fillColortransparentNoYes
bordershorthand
border-colorColortransparentNoYes
border-styleBorderStylesolidNoNo
border-widthBorderWidth0NoYes
caret-colorColortransparentYesYes
colorColortransparentYesYes
corner-radiusCornerRadius0NoYes
corner-top-left-radiusLengthOrPercentage0NoYes
corner-top-right-radiusLengthOrPercentage0NoYes
corner-bottom-left-radiusLengthOrPercentage0NoYes
corner-bottom-right-radiusLengthOrPercentage0NoYes
corner-shapeRect<CornerShape>roundNoNo
corner-top-left-shapeCornerShaperoundNoNo
corner-top-right-shapeCornerShaperoundNoNo
corner-bottom-left-shapeCornerShaperoundNoNo
corner-bottom-right-shapeCornerShaperoundNoNo
cursorCursorIcondefaultNoNo
font-familyFontFamilyYesNo
font-sizeFontSize16YesYes
font-slantFontSlantnormalYesNo
font-weightFontWeightregularYesNo
font-widthFontWidthnormalYesNo
font-variation-settingsVec<FontVariation>noneYesNo
line-clampLineClampnoneNoNo
outlineshorthandNo
outline-colorColortransparentNoYes
outline-offsetLengthOrPercentage0NoYes
outline-widthBorderWidth0NoYes
pointer-eventsPointerEventsautoNoNo
rotateAngle0NoYes
scaleScale1NoYes
selection-colorColortransparentYesYes
shadowShadowNoYes
text-alignTextAlignleftNoNo
text-decorationshorthand
text-decoration-lineTextDecorationLinenoneYesNo
text-overflowTextOverflowclipNoNo
text-strokeTextStrokenoneYesNo
text-stroke-widthLength0YesNo
text-stroke-styleTextStrokeStylesolidYesNo
text-wrapbooltrueNoNo
underline-styleTextDecorationStylesolidYesNo
underline-thicknessLengthOrPercentageautoYesNo
underline-colorColorcurrentColorYesYes
overline-styleTextDecorationStylesolidYesNo
overline-thicknessLengthOrPercentageautoYesNo
overline-colorColorcurrentColorYesYes
strikethrough-styleTextDecorationStylesolidYesNo
strikethrough-thicknessLengthOrPercentageautoYesNo
strikethrough-colorColorcurrentColorYesYes
transformVec<Transform>noneNoYes
transform-originPositionNoYes
transitionVec<Transition>noneNoNo
translateTranslateNoYes