Skip to main content

Module computed

Module computed 

Source
Expand description

Style computation: cascade, inheritance, and resolved values.

Structs§

ComputedStyle
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).