Expand description
CSS properties for backgrounds, including colors, images, and gradients.
Structs§
- Conic
Gradient - Linear
Color Stop - Transient struct for parsing linear color stops before normalization.
- Linear
Gradient - Normalized
Linear Color Stop - Normalized
Linear Color Stop Vec - Normalized
Radial Color Stop - Normalized
Radial Color Stop Vec - Pixel
Value Size - Two-dimensional size in PixelValue units (width, height) Used for background-size and similar properties
- Radial
Color Stop - Transient struct for parsing radial/conic color stops before normalization.
- Radial
Gradient - Style
Background Content Vec - Style
Background Position - Style
Background Position Vec - Style
Background Repeat Vec - Style
Background Size Vec
Enums§
- Background
Position Horizontal - Background
Position Vertical - CssBackground
Parse Error - CssBackground
Parse Error Owned - CssBackground
Position Parse Error - CssBackground
Position Parse Error Owned - CssConic
Gradient Parse Error - CssConic
Gradient Parse Error Owned - CssGradient
Stop Parse Error - CssGradient
Stop Parse Error Owned - CssShape
Parse Error - CssShape
Parse Error Owned - Extend
Mode - Whether a
gradientshould be repeated or clamped to the edges. - Gradient
Type - Internal enum to help dispatch parsing logic within the
parse_gradientfunction. - Normalized
Linear Color Stop VecDestructor - Normalized
Radial Color Stop VecDestructor - Radial
Gradient Size - Shape
- Style
Background Content - Style
Background Content VecDestructor - Style
Background Position VecDestructor - Style
Background Repeat - Style
Background Repeat VecDestructor - Style
Background Size - Style
Background Size VecDestructor
Functions§
- parse_
style_ background_ content - Parses a single background value, which can be a color, image, or gradient.
- parse_
style_ background_ content_ multiple - Parses multiple backgrounds, such as “linear-gradient(red, green), url(image.png)”.
- parse_
style_ background_ position - Parses a single
background-positionvalue. - parse_
style_ background_ position_ multiple - Parses multiple
background-positionvalues. - parse_
style_ background_ repeat - Parses a single
background-repeatvalue. - parse_
style_ background_ repeat_ multiple - Parses multiple
background-repeatvalues. - parse_
style_ background_ size - Parses a single
background-sizevalue. - parse_
style_ background_ size_ multiple - Parses multiple
background-sizevalues.