Expand description
Style computation: cascade, inheritance, and resolved values.
Structs§
- Computed
Style - Resolved, computed styles for a single element.
Functions§
- compute_
styles - Compute styles for a set of classes + tag, cascading from multiple stylesheets.
- parse_
color - Convert CSS color string to RGBA tuple (r, g, b, a) in 0-1 range. Supports: #hex, rgb(), rgba(), named colors.
- parse_
px - Parse a CSS pixel value (e.g., “16px” → 16.0).