Expand description
Property values. v1 covers the handful needed by phase-1 properties (background-color, color, padding, margin, width, height); phase-2 adds Auto, Number, FontFamilyList, Border, and SideSet for mixed length/auto shorthands.
Structs§
Enums§
- Length
Lengthcarriesf64payloads so it intentionally only implementsPartialEq—f64is notEq. By extension,Value::LengthSetand any container ofValuecannot beEqeither. Adapters that want hashable/Eq-equivalent comparison should compare a derived representation (e.g. rendered floemStyle).- Side
Value - One side in a mixed length/auto shorthand (
margin: 4px auto). - Value
Functions§
- expand_
side_ set - Expand a 1..=4
SideValueshorthand to four sides. - expand_
sides - Expand a 1..=4 length shorthand to the four sides (top, right, bottom,
left). Mirrors CSS’s
padding/marginrules.