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.
BoxShadow
One structured box-shadow layer.
ClipPoint
One point in a structured clip path.
GridArea
One rectangular named region in grid-template-areas.
GridTemplate
Value for grid-template-rows / grid-template-columns.
GridTemplateAreas
Rectangular named regions for grid-template-areas.
GridTrack
One CSS Grid track sizing function.
InsetPath
A typed inset() motion path.
MotionPathPoint
One absolute point in an offset-path: path() value.
Repeated
Comma-separated list of values, used for properties like animation-name, transition-property, background-image.

Enums§

BackdropFilter
Supported value of backdrop-filter.
ClipBox
Reference box used by a structured clip path.
ClipFillRule
Fill rule used by a clip path.
ClipPath
Typed clip-path value.
ClipPathCommand
One command in a structured clip path.
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>.
GridRepeatCount
Count used by a Grid repeat() fragment.
GridTemplateComponent
One explicit track or repeated track fragment.
GridTrackMax
Maximum sizing function accepted by minmax().
GridTrackMin
Minimum sizing function accepted by minmax().
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.
MotionPathCommand
One command in an absolute SVG offset-path: path() value.
OffsetDistance
Supported offset-distance value.
OffsetPath
Supported offset-path value.
OffsetRotate
Supported offset-rotate value.
Size
Value for width, height, min-width, min-height, max-width, max-height.
VerticalAlignment
A keyword or signed distance for vertical-align.