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 Name | Related Property Variant | Major Value Options |
|---|---|---|
align-content | Property::AlignContent | baselinecenterendflex-endflex-startnormalspace-aroundspace-betweenspace-evenlystartstretch |
align-items | Property::AlignItems | baselinecenterendflex-endflex-startnormalself-endself-startstartstretch |
align-self | Property::AlignSelf | autobaselinecenterendflex-endflex-startnormalself-endself-startstartstretch |
animation | ||
animation-delay | Property::AnimationDelay | |
animation-direction | Property::AnimationDirection | |
animation-duration | Property::AnimationDuration | |
animation-fill-mode | Property::AnimationFillMode | |
animation-iteration-count | Property::AnimationIterationCount | |
animation-name | Property::AnimationName | |
animation-play-state | Property::AnimationPlayState | |
animation-timing-function | Property::AnimationTimingFunction | |
aspect-ratio | Property::AspectRatio | auto |
backdrop-filter | Property::BackdropFilter | none |
background | ||
background-attachment | Property::BackgroundAttachment | |
background-clip | Property::BackgroundClip | |
background-color | Property::BackgroundColor | |
background-image | Property::BackgroundImage | |
background-origin | Property::BackgroundOrigin | |
background-position | ||
background-position-x | Property::BackgroundPositionX | |
background-position-y | Property::BackgroundPositionY | |
background-repeat | Property::BackgroundRepeat | |
background-size | Property::BackgroundSize | |
border | ||
border-bottom | ||
border-bottom-color | Property::BorderBottomColor | |
border-bottom-left-radius | Property::BorderBottomLeftRadius | |
border-bottom-right-radius | Property::BorderBottomRightRadius | |
border-bottom-style | Property::BorderBottomStyle | |
border-bottom-width | Property::BorderBottomWidth | |
border-color | ||
border-left | ||
border-left-color | Property::BorderLeftColor | |
border-left-style | Property::BorderLeftStyle | |
border-left-width | Property::BorderLeftWidth | |
border-radius | ||
border-right | ||
border-right-color | Property::BorderRightColor | |
border-right-style | Property::BorderRightStyle | |
border-right-width | Property::BorderRightWidth | |
border-style | ||
border-top | ||
border-top-color | Property::BorderTopColor | |
border-top-left-radius | Property::BorderTopLeftRadius | |
border-top-right-radius | Property::BorderTopRightRadius | |
border-top-style | Property::BorderTopStyle | |
border-top-width | Property::BorderTopWidth | |
border-width | ||
bottom | Property::Bottom | |
box-shadow | Property::BoxShadow | none |
box-sizing | Property::BoxSizing | border-boxcontent-boxpadding-box |
caret-color | Property::CaretColor | |
color | Property::Color | |
column-gap | Property::ColumnGap | |
contain | Property::Contain | contentnonestrict |
content | Property::Content | nonenormal |
direction | Property::Direction | ltrrtl |
display | Property::Display | blockflexflow-rootgridinline-blockinline-flexinline-gridinlinenone |
filter | Property::Filter | none |
flex | ||
flex-basis | Property::FlexBasis | |
flex-direction | Property::FlexDirection | column-reversecolumnrow-reverserow |
flex-flow | ||
flex-grow | Property::FlexGrow | |
flex-shrink | Property::FlexShrink | |
flex-wrap | Property::FlexWrap | nowrapwrap-reversewrap |
float | Property::Float | inline-endinline-startleftnoneright |
font | ||
font-family | Property::FontFamily | |
font-feature-settings | Property::FontFeatureSettings | normal |
font-size | Property::FontSize | |
font-style | Property::FontStyle | |
font-weight | Property::FontWeight | |
gap | ||
grid-auto-columns | Property::GridAutoColumns | |
grid-auto-flow | Property::GridAutoFlow | |
grid-auto-rows | Property::GridAutoRows | |
grid-template-columns | Property::GridTemplateColumns | none |
grid-template-rows | Property::GridTemplateRows | none |
height | Property::Height | |
justify-content | Property::JustifyContent | baselinecenterendflex-endflex-startleftnormalrightspace-aroundspace-betweenspace-evenlystartstretch |
justify-items | Property::JustifyItems | centerendflex-endflex-startleftnormalrightself-endself-startstartstretch |
justify-self | Property::JustifySelf | autocenterendflex-endflex-startleftnormalrightself-endself-startstartstretch |
left | Property::Left | |
letter-spacing | Property::LetterSpacing | normal |
line-height | Property::LineHeight | |
list-style | ||
list-style-image | Property::ListStyleImage | none |
list-style-position | Property::ListStylePosition | insideoutside |
list-style-type | Property::ListStyleType | armeniancirclecjk-decimaldecimal-leading-zerodecimaldiscgeorgianlower-alphalower-greeklower-latinlower-romannonesquareupper-alphaupper-latinupper-roman |
margin | ||
margin-bottom | Property::MarginBottom | |
margin-left | Property::MarginLeft | |
margin-right | Property::MarginRight | |
margin-top | Property::MarginTop | |
mask | ||
mask-clip | Property::MaskClip | |
mask-image | Property::MaskImage | |
mask-mode | Property::MaskMode | |
mask-origin | Property::MaskOrigin | |
mask-position | ||
mask-position-x | Property::MaskPositionX | |
mask-position-y | Property::MaskPositionY | |
mask-repeat | Property::MaskRepeat | |
mask-size | Property::MaskSize | |
max-height | Property::MaxHeight | |
max-width | Property::MaxWidth | |
min-height | Property::MinHeight | |
min-width | Property::MinWidth | |
opacity | Property::Opacity | |
order | Property::Order | |
overflow | ||
overflow-wrap | Property::OverflowWrap | break-wordnormal |
overflow-x | Property::OverflowX | autohiddenscrollvisible |
overflow-y | Property::OverflowY | autohiddenscrollvisible |
padding | ||
padding-bottom | Property::PaddingBottom | |
padding-left | Property::PaddingLeft | |
padding-right | Property::PaddingRight | |
padding-top | Property::PaddingTop | |
pointer-events | Property::PointerEvents | autonone |
position | Property::Position | absolutefixedrelativestaticsticky |
resize | Property::Resize | blockbothhorizontalinlinenonevertical |
right | Property::Right | |
row-gap | Property::RowGap | |
text-align | Property::TextAlign | centerendjustify-alljustifyleftmatch-parentrightstart |
text-decoration | ||
text-decoration-color | Property::TextDecorationColor | |
text-decoration-line | Property::TextDecorationLine | grammar-errornonespelling-error |
text-decoration-style | Property::TextDecorationStyle | dasheddotteddoublesolidwavy |
text-decoration-thickness | Property::TextDecorationThickness | from-font |
text-indent | Property::TextIndent | |
text-overflow | Property::TextOverflow | clipellipsis |
text-shadow | Property::TextShadow | none |
text-underline-offset | Property::TextUnderlineOffset | auto |
top | Property::Top | |
touch-action | Property::TouchAction | automanipulationnone |
transform | Property::Transform | |
transform-origin | Property::TransformOrigin | |
transition | ||
transition-delay | Property::TransitionDelay | |
transition-duration | Property::TransitionDuration | |
transition-property | Property::TransitionProperty | |
transition-timing-function | Property::TransitionTimingFunction | |
vertical-align | Property::VerticalAlign | baselinebottommiddletext-bottomtext-toptop |
visibility | Property::Visibility | collapsehiddenvisible |
white-space | Property::WhiteSpace | -wx-pre-editnormalnowrappre-linepre-wrappre |
width | Property::Width | |
will-change | Property::WillChange | auto |
word-break | Property::WordBreak | break-allbreak-wordkeep-allnormal |
word-spacing | Property::WordSpacing | normal |
writing-mode | Property::WritingMode | horizontal-tbvertical-lrvertical-rl |
z-index | Property::ZIndex | auto |
-wx-contain | Property::WxContain | contentnonestrict |
-wx-engine-touch-event | Property::WxEngineTouchEvent | clickgesturenone |
-wx-line-clamp | Property::WxLineClamp | |
-wx-partial-z-index | Property::WxPartialZIndex | |
-wx-pointer-event-root | Property::WxPointerEventRoot | autoroot |
-wx-scrollbar-color | ||
-wx-scrollbar-x | Property::WxScrollbarX | always-showauto-hidehidden |
-wx-scrollbar-x-color | Property::WxScrollbarXColor | |
-wx-scrollbar-y | Property::WxScrollbarY | always-showauto-hidehidden |
-wx-scrollbar-y-color | Property::WxScrollbarYColor |