Expand description
The 11 data types Lynx documents under https://lynxjs.org/api/css/data-type.html.
Each submodule maps one Lynx data type to a Rust type with a
ToCss implementation. The set is intentionally
narrow: Lynx does not expose <integer>, <image>, <position>,
or <easing-function> as standalone data types; the equivalents
live in crate::data_type_ext.
Structs§
- Color
Stop - A
<color-stop>: a color and an optional position. - CssString
- A CSS
<string>value. - FitContent
<fit-content>— sizes the box to the content with an optional upper bound.- MaxContent
<max-content>— sizes the box to its maximum intrinsic content size.- Number
- A CSS
<number>value. - Percentage
- A CSS
<percentage>value.
Enums§
- Angle
- A CSS
<angle>value. - Calc
Expr - A
calc()expression node. - Color
- A CSS
<color>value. - Gradient
- A CSS
<gradient>value. - Length
- A CSS
<length>value. - Length
Percentage - A CSS
<length-percentage>value. - Linear
Direction - The direction component of a
linear-gradient. - Named
Color - A CSS named color.
- Radial
Shape - The shape component of a
radial-gradient. - Stop
Position - Position of a
ColorStop. - Time
- A CSS
<time>value.