Skip to main content

SUPPORTED_CSS_PROPERTY_NAMES

Constant SUPPORTED_CSS_PROPERTY_NAMES 

Source
pub const SUPPORTED_CSS_PROPERTY_NAMES: [&'static str; 165];
Expand description

The supported CSS property names.

This list is sorted, so it is safe to do binary search on it.

Note that this is just a simple list of basic parsing rules.

  • Some properties in this list are shorthand properties that cannot be found in the Property enum.
  • Parsing rules of some properties are slightly different from the web standard.

See the table below for more information about all supported properties.

Property NameRelated Property VariantMajor Value Options
align-contentProperty::AlignContentbaseline
center
end
flex-end
flex-start
normal
space-around
space-between
space-evenly
start
stretch
align-itemsProperty::AlignItemsbaseline
center
end
flex-end
flex-start
normal
self-end
self-start
start
stretch
align-selfProperty::AlignSelfauto
baseline
center
end
flex-end
flex-start
normal
self-end
self-start
start
stretch
animation
animation-delayProperty::AnimationDelay
animation-directionProperty::AnimationDirection
animation-durationProperty::AnimationDuration
animation-fill-modeProperty::AnimationFillMode
animation-iteration-countProperty::AnimationIterationCount
animation-nameProperty::AnimationName
animation-play-stateProperty::AnimationPlayState
animation-timing-functionProperty::AnimationTimingFunction
aspect-ratioProperty::AspectRatioauto
backdrop-filterProperty::BackdropFilternone
background
background-attachmentProperty::BackgroundAttachment
background-clipProperty::BackgroundClip
background-colorProperty::BackgroundColor
background-imageProperty::BackgroundImage
background-originProperty::BackgroundOrigin
background-position
background-position-xProperty::BackgroundPositionX
background-position-yProperty::BackgroundPositionY
background-repeatProperty::BackgroundRepeat
background-sizeProperty::BackgroundSize
border
border-bottom
border-bottom-colorProperty::BorderBottomColor
border-bottom-left-radiusProperty::BorderBottomLeftRadius
border-bottom-right-radiusProperty::BorderBottomRightRadius
border-bottom-styleProperty::BorderBottomStyle
border-bottom-widthProperty::BorderBottomWidth
border-color
border-left
border-left-colorProperty::BorderLeftColor
border-left-styleProperty::BorderLeftStyle
border-left-widthProperty::BorderLeftWidth
border-radius
border-right
border-right-colorProperty::BorderRightColor
border-right-styleProperty::BorderRightStyle
border-right-widthProperty::BorderRightWidth
border-style
border-top
border-top-colorProperty::BorderTopColor
border-top-left-radiusProperty::BorderTopLeftRadius
border-top-right-radiusProperty::BorderTopRightRadius
border-top-styleProperty::BorderTopStyle
border-top-widthProperty::BorderTopWidth
border-width
bottomProperty::Bottom
box-shadowProperty::BoxShadownone
box-sizingProperty::BoxSizingborder-box
content-box
padding-box
caret-colorProperty::CaretColor
colorProperty::Color
column-gapProperty::ColumnGap
containProperty::Containcontent
none
strict
contentProperty::Contentnone
normal
directionProperty::Directionltr
rtl
displayProperty::Displayblock
flex
flow-root
grid
inline-block
inline-flex
inline-grid
inline
none
filterProperty::Filternone
flex
flex-basisProperty::FlexBasis
flex-directionProperty::FlexDirectioncolumn-reverse
column
row-reverse
row
flex-flow
flex-growProperty::FlexGrow
flex-shrinkProperty::FlexShrink
flex-wrapProperty::FlexWrapnowrap
wrap-reverse
wrap
floatProperty::Floatinline-end
inline-start
left
none
right
font
font-familyProperty::FontFamily
font-feature-settingsProperty::FontFeatureSettingsnormal
font-sizeProperty::FontSize
font-styleProperty::FontStyle
font-weightProperty::FontWeight
gap
grid-auto-columnsProperty::GridAutoColumns
grid-auto-flowProperty::GridAutoFlow
grid-auto-rowsProperty::GridAutoRows
grid-template-columnsProperty::GridTemplateColumnsnone
grid-template-rowsProperty::GridTemplateRowsnone
heightProperty::Height
justify-contentProperty::JustifyContentbaseline
center
end
flex-end
flex-start
left
normal
right
space-around
space-between
space-evenly
start
stretch
justify-itemsProperty::JustifyItemscenter
end
flex-end
flex-start
left
normal
right
self-end
self-start
start
stretch
justify-selfProperty::JustifySelfauto
center
end
flex-end
flex-start
left
normal
right
self-end
self-start
start
stretch
leftProperty::Left
letter-spacingProperty::LetterSpacingnormal
line-heightProperty::LineHeight
list-style
list-style-imageProperty::ListStyleImagenone
list-style-positionProperty::ListStylePositioninside
outside
list-style-typeProperty::ListStyleTypearmenian
circle
cjk-decimal
decimal-leading-zero
decimal
disc
georgian
lower-alpha
lower-greek
lower-latin
lower-roman
none
square
upper-alpha
upper-latin
upper-roman
margin
margin-bottomProperty::MarginBottom
margin-leftProperty::MarginLeft
margin-rightProperty::MarginRight
margin-topProperty::MarginTop
mask
mask-clipProperty::MaskClip
mask-imageProperty::MaskImage
mask-modeProperty::MaskMode
mask-originProperty::MaskOrigin
mask-position
mask-position-xProperty::MaskPositionX
mask-position-yProperty::MaskPositionY
mask-repeatProperty::MaskRepeat
mask-sizeProperty::MaskSize
max-heightProperty::MaxHeight
max-widthProperty::MaxWidth
min-heightProperty::MinHeight
min-widthProperty::MinWidth
opacityProperty::Opacity
orderProperty::Order
overflow
overflow-wrapProperty::OverflowWrapbreak-word
normal
overflow-xProperty::OverflowXauto
hidden
scroll
visible
overflow-yProperty::OverflowYauto
hidden
scroll
visible
padding
padding-bottomProperty::PaddingBottom
padding-leftProperty::PaddingLeft
padding-rightProperty::PaddingRight
padding-topProperty::PaddingTop
pointer-eventsProperty::PointerEventsauto
none
positionProperty::Positionabsolute
fixed
relative
static
sticky
resizeProperty::Resizeblock
both
horizontal
inline
none
vertical
rightProperty::Right
row-gapProperty::RowGap
text-alignProperty::TextAligncenter
end
justify-all
justify
left
match-parent
right
start
text-decoration
text-decoration-colorProperty::TextDecorationColor
text-decoration-lineProperty::TextDecorationLinegrammar-error
none
spelling-error
text-decoration-styleProperty::TextDecorationStyledashed
dotted
double
solid
wavy
text-decoration-thicknessProperty::TextDecorationThicknessfrom-font
text-indentProperty::TextIndent
text-overflowProperty::TextOverflowclip
ellipsis
text-shadowProperty::TextShadownone
text-underline-offsetProperty::TextUnderlineOffsetauto
topProperty::Top
touch-actionProperty::TouchActionauto
manipulation
none
transformProperty::Transform
transform-originProperty::TransformOrigin
transition
transition-delayProperty::TransitionDelay
transition-durationProperty::TransitionDuration
transition-propertyProperty::TransitionProperty
transition-timing-functionProperty::TransitionTimingFunction
vertical-alignProperty::VerticalAlignbaseline
bottom
middle
text-bottom
text-top
top
visibilityProperty::Visibilitycollapse
hidden
visible
white-spaceProperty::WhiteSpace-wx-pre-edit
normal
nowrap
pre-line
pre-wrap
pre
widthProperty::Width
will-changeProperty::WillChangeauto
word-breakProperty::WordBreakbreak-all
break-word
keep-all
normal
word-spacingProperty::WordSpacingnormal
writing-modeProperty::WritingModehorizontal-tb
vertical-lr
vertical-rl
z-indexProperty::ZIndexauto
-wx-containProperty::WxContaincontent
none
strict
-wx-engine-touch-eventProperty::WxEngineTouchEventclick
gesture
none
-wx-line-clampProperty::WxLineClamp
-wx-partial-z-indexProperty::WxPartialZIndex
-wx-pointer-event-rootProperty::WxPointerEventRootauto
root
-wx-scrollbar-color
-wx-scrollbar-xProperty::WxScrollbarXalways-show
auto-hide
hidden
-wx-scrollbar-x-colorProperty::WxScrollbarXColor
-wx-scrollbar-yProperty::WxScrollbarYalways-show
auto-hide
hidden
-wx-scrollbar-y-colorProperty::WxScrollbarYColor