Expand description
Defines the core CssProperty enum, which represents any single parsed CSS property,
as well as top-level functions for parsing CSS keys and values.
Structs§
- CssKey
Map - CssProperty
Type Iter - An iterator over the variants of CssPropertyType
- CssProperty
Vec
Enums§
- Combined
CssProperty Type - CssParsing
Error - Master error type that aggregates all possible CSS parsing errors.
- CssParsing
Error Owned - Owned version of
CssParsingError. - CssProperty
- Represents one parsed CSS key-value pair, such as
"width: 20px"=>CssProperty::Width(LayoutWidth::px(20.0)) - CssProperty
Category - Categorizes a CSS property by its effect on the layout pipeline.
- CssProperty
Type - Represents a CSS key (for example
"border-radius"=>BorderRadius). You can also derive this key from aCssPropertyby callingCssProperty::get_type(). - CssProperty
VecDestructor - Option
CssProperty
Functions§
- format_
static_ css_ prop - get_
css_ key_ map - Returns a map useful for parsing the keys of CSS stylesheets
- parse_
combined_ css_ property - Parses a combined CSS property or a CSS property shorthand, for example “margin” (as a shorthand for setting all four properties of “margin-top”, “margin-bottom”, “margin-left” and “margin-right”)
- parse_
css_ property
Type Aliases§
- BoxDecoration
Break Value - Break
Inside Value - Caret
Animation Duration Value - Caret
Color Value - Caret
Width Value - Clip
Path Value - Column
Count Value - Column
Fill Value - Column
Rule Color Value - Column
Rule Style Value - Column
Rule Width Value - Column
Span Value - Column
Width Value - Content
Value - Counter
Increment Value - Counter
Reset Value - CssProperty
VecDestructor Type - Flow
From Value - Flow
Into Value - Layout
Align Content Value - Layout
Align Items Value - Layout
Align Self Value - Layout
Border Bottom Width Value - Layout
Border Left Width Value - Layout
Border Right Width Value - Layout
Border Spacing Value - Layout
Border TopWidth Value - Layout
BoxSizing Value - Layout
Clear Value - Layout
Column GapValue - Layout
Display Value - Layout
Flex Basis Value - Layout
Flex Direction Value - Layout
Flex Grow Value - Layout
Flex Shrink Value - Layout
Flex Wrap Value - Layout
Float Value - Layout
GapValue - Layout
Grid Auto Columns Value - Layout
Grid Auto Flow Value - Layout
Grid Auto Rows Value - Layout
Grid Column Value - Layout
Grid RowValue - Layout
Grid Template Columns Value - Layout
Grid Template Rows Value - Layout
Height Value - Layout
Inset Bottom Value - Layout
Justify Content Value - Layout
Justify Items Value - Layout
Justify Self Value - Layout
Left Value - Layout
Margin Bottom Value - Layout
Margin Left Value - Layout
Margin Right Value - Layout
Margin TopValue - Layout
MaxHeight Value - Layout
MaxWidth Value - Layout
MinHeight Value - Layout
MinWidth Value - Layout
Overflow Value - Layout
Padding Bottom Value - Layout
Padding Inline EndValue - Layout
Padding Inline Start Value - Layout
Padding Left Value - Layout
Padding Right Value - Layout
Padding TopValue - Layout
Position Value - Layout
Right Value - Layout
RowGap Value - Layout
Scrollbar Width Value - Layout
Table Layout Value - Layout
Text Justify Value - Layout
TopValue - Layout
Width Value - Layout
Writing Mode Value - LayoutZ
Index Value - Orphans
Value - Page
Break Value - Scrollbar
Style Value - Selection
Background Color Value - Selection
Color Value - Selection
Radius Value - Shape
Image Threshold Value - Shape
Inside Value - Shape
Margin Value - Shape
Outside Value - String
SetValue - Style
Backface Visibility Value - Style
Background Content VecValue - Style
Background Position VecValue - Style
Background Repeat VecValue - Style
Background Size VecValue - Style
Border Bottom Color Value - Style
Border Bottom Left Radius Value - Style
Border Bottom Right Radius Value - Style
Border Bottom Style Value - Style
Border Collapse Value - Style
Border Left Color Value - Style
Border Left Style Value - Style
Border Right Color Value - Style
Border Right Style Value - Style
Border TopColor Value - Style
Border TopLeft Radius Value - Style
Border TopRight Radius Value - Style
Border TopStyle Value - Style
BoxShadow Value - Style
Caption Side Value - Style
Cursor Value - Style
Direction Value - Style
Empty Cells Value - Style
Exclusion Margin Value - Style
Filter VecValue - Style
Font Family VecValue - Style
Font Size Value - Style
Font Style Value - Style
Font Value - Style
Font Weight Value - Style
Hanging Punctuation Value - Style
Hyphenation Language Value - Style
Hyphens Value - Style
Initial Letter Value - Style
Letter Spacing Value - Style
Line Clamp Value - Style
Line Height Value - Style
List Style Position Value - Style
List Style Type Value - Style
MixBlend Mode Value - Style
Opacity Value - Style
Perspective Origin Value - Style
Scrollbar Color Value - Style
TabWidth Value - Style
Text Align Value - Style
Text Color Value - Style
Text Combine Upright Value - Style
Text Decoration Value - Style
Text Indent Value - Style
Transform Origin Value - Style
Transform VecValue - Style
User Select Value - Style
Vertical Align Value - Style
Visibility Value - Style
White Space Value - Style
Word Spacing Value - Widows
Value