Skip to main content

Module value

Module value 

Source
Expand description

Property-input composite value types.

Some CSS properties accept a value Lynx does not document as a standalone data type — e.g. width accepts a <length-percentage>, auto, max-content, or a fit-content() function. Modeling that mixture cleanly requires a Rust enum that gathers the allowed forms in one place. Those enums live here so each property method on Css can declare a precise argument type.

Structs§

BorderRadius
Value for the border-radius shorthand. Stores per-corner radii, optionally with an elliptical second axis.
GridTemplate
Value for grid-template-rows / grid-template-columns. Lynx accepts a sequence of track-sizing values; this struct stores them as already-serialized track strings since the grammar is rich enough that a typed model is impractical.
Repeated
Comma-separated list of values, used for properties like animation-name, transition-property, background-image.

Enums§

FlexBasis
Value for flex-basis.
GridLine
Value for grid-row-start, grid-row-end, grid-column-start, grid-column-end. Lynx accepts numeric line references and span <integer>.
ImageRef
A reference to an image resource. Lynx accepts url("..."), linear-gradient(...), and radial-gradient(...). conic-gradient is supported on background-image but represented via crate::Gradient.
LineHeight
Value for line-height.
Size
Value for width, height, min-width, min-height, max-width, max-height.