Expand description
CSS properties for visual effects (opacity, blending, cursor), box sizing (object-fit, object-position, aspect-ratio), and text orientation.
Re-exports§
pub use self::parsers::*;
Modules§
Structs§
- Aspect
Ratio Value - Width/height ratio stored as fixed-point (value * 1000).
- Style
Object Position - CSS object-position property: position of replaced element content within its box.
CSS Images Level 3 §5.6 — default:
50% 50%(centered) - Style
Opacity - Represents an
opacityattribute, a value from 0.0 to 1.0.
Enums§
- Option
Style Aspect Ratio - Option
Style Object Fit - Option
Style Object Position - Option
Style Text Orientation - Style
Aspect Ratio - CSS aspect-ratio property: preferred aspect ratio for the box.
CSS Box Sizing Level 4 §6 — values:
auto | <ratio>(initial:auto) - Style
Aspect Ratio Parse Error - Style
Aspect Ratio Parse Error Owned - Style
Cursor - Represents a
cursorattribute, defining the mouse cursor to be displayed when pointing over an element. - Style
MixBlend Mode - Represents a
mix-blend-modeattribute, which determines how an element’s content should blend with the content of the element’s parent. - Style
Object Fit - CSS object-fit property: how replaced element content is fitted to its box. CSS Images Level 3 §5.5
- Style
Object FitParse Error - Style
Object FitParse Error Owned - Style
Object Position Parse Error - Style
Object Position Parse Error Owned - Style
Text Orientation - CSS text-orientation property for vertical writing modes. CSS Writing Modes Level 4 §5.1
- Style
Text Orientation Parse Error - Style
Text Orientation Parse Error Owned - Style
Visibility - Represents a
visibilityattribute, controlling element visibility.
Functions§
- parse_
style_ aspect_ ratio - Parse aspect-ratio: “auto”, “16 / 9”, “1.5”, “4/3”
- parse_
style_ object_ fit - Errors
- parse_
style_ object_ position - Parse object-position: accepts keyword pairs or percentage/length values. Examples: “center”, “left top”, “50% 50%”, “10px 20px”
- parse_
style_ text_ orientation - Errors