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§
- Border
Radius - Value for the
border-radiusshorthand. Stores per-corner radii, optionally with an elliptical second axis. - Grid
Template - 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§
- Flex
Basis - Value for
flex-basis. - Grid
Line - Value for
grid-row-start,grid-row-end,grid-column-start,grid-column-end. Lynx accepts numeric line references andspan <integer>. - Image
Ref - A reference to an image resource. Lynx accepts
url("..."),linear-gradient(...), andradial-gradient(...).conic-gradientis supported on background-image but represented viacrate::Gradient. - Line
Height - Value for
line-height. - Size
- Value for
width,height,min-width,min-height,max-width,max-height.