Skip to main content

Module background

Module background 

Source
Expand description

CSS properties for backgrounds, including colors, images, and gradients.

Structs§

ConicGradient
LinearColorStop
Transient struct for parsing linear color stops before normalization.
LinearGradient
NormalizedLinearColorStop
NormalizedLinearColorStopVec
NormalizedRadialColorStop
NormalizedRadialColorStopVec
PixelValueSize
Two-dimensional size in PixelValue units (width, height) Used for background-size and similar properties
RadialColorStop
Transient struct for parsing radial/conic color stops before normalization.
RadialGradient
StyleBackgroundContentVec
StyleBackgroundPosition
StyleBackgroundPositionVec
StyleBackgroundRepeatVec
StyleBackgroundSizeVec

Enums§

BackgroundPositionHorizontal
BackgroundPositionVertical
CssBackgroundParseError
CssBackgroundParseErrorOwned
CssBackgroundPositionParseError
CssBackgroundPositionParseErrorOwned
CssConicGradientParseError
CssConicGradientParseErrorOwned
CssGradientStopParseError
CssGradientStopParseErrorOwned
CssShapeParseError
CssShapeParseErrorOwned
ExtendMode
Whether a gradient should be repeated or clamped to the edges.
GradientType
Internal enum to help dispatch parsing logic within the parse_gradient function.
NormalizedLinearColorStopVecDestructor
NormalizedRadialColorStopVecDestructor
RadialGradientSize
Shape
StyleBackgroundContent
StyleBackgroundContentVecDestructor
StyleBackgroundPositionVecDestructor
StyleBackgroundRepeat
StyleBackgroundRepeatVecDestructor
StyleBackgroundSize
StyleBackgroundSizeVecDestructor

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-position value.
parse_style_background_position_multiple
Parses multiple background-position values.
parse_style_background_repeat
Parses a single background-repeat value.
parse_style_background_repeat_multiple
Parses multiple background-repeat values.
parse_style_background_size
Parses a single background-size value.
parse_style_background_size_multiple
Parses multiple background-size values.

Type Aliases§

NormalizedLinearColorStopVecDestructorType
NormalizedRadialColorStopVecDestructorType
StyleBackgroundContentVecDestructorType
StyleBackgroundPositionVecDestructorType
StyleBackgroundRepeatVecDestructorType
StyleBackgroundSizeVecDestructorType