Skip to main content

Module border

Module border 

Source
Expand description

CSS properties for border style, width, and color.

Structs§

LayoutBorderBottomWidth
LayoutBorderLeftWidth
LayoutBorderRightWidth
LayoutBorderTopWidth
StyleBorderBottomColor
StyleBorderBottomStyle
StyleBorderColors
Parsed result of border-color shorthand (1-4 color values)
StyleBorderLeftColor
StyleBorderLeftStyle
StyleBorderRightColor
StyleBorderRightStyle
StyleBorderSide
Represents the three components of a border shorthand property, used as an intermediate representation during parsing.
StyleBorderStyles
Parsed result of border-style shorthand (1-4 style values)
StyleBorderTopColor
StyleBorderTopStyle
StyleBorderWidths
Parsed result of border-width shorthand (1-4 width values)

Enums§

BorderStyle
Style of a border: solid, double, dash, ridge, etc.
CssBorderSideParseError
CssBorderSideParseErrorOwned
CssBorderStyleParseError
CssBorderStyleParseErrorOwned

Functions§

parse_border_bottom_color
parse_border_bottom_style
parse_border_bottom_width
parse_border_left_color
parse_border_left_style
parse_border_left_width
parse_border_right_color
parse_border_right_style
parse_border_right_width
parse_border_side
Parses a border shorthand property such as “1px solid red”. Handles any order of components and applies defaults for missing values.
parse_border_style
parse_border_top_color
parse_border_top_style
parse_border_top_width
parse_style_border
parse_style_border_color
Parses border-color shorthand: 1-4 color values
parse_style_border_style
Parses border-style shorthand: 1-4 style values
parse_style_border_width
Parses border-width shorthand: 1-4 width values

Type Aliases§

CssBorderParseError
CssBorderParseErrorOwned