Module length

Source
Expand description

<length> computed values, and related ones.

Re-exports§

pub use super::image::Image;
pub use super::length_percentage::LengthPercentage;
pub use super::length_percentage::NonNegativeLengthPercentage;
pub use crate::values::specified::url::UrlOrNone;
pub use crate::values::specified::Angle;
pub use crate::values::specified::BorderStyle;
pub use crate::values::specified::Time;

Macros§

computed_length_percentage_or_auto 🔒
Some boilerplate to share between negative and non-negative length-percentage or auto.

Structs§

CSSPixelLength
The computed <length> value.

Type Aliases§

Length
An alias of computed <length> value.
LengthOrAuto
Either a computed <length> or the auto keyword.
LengthOrNumber
Either a computed <length> or a <number> value.
LengthPercentageOrAuto
A computed type for <length-percentage> | auto.
Margin
A computed type for margin properties.
MaxSize
A computed value for max-width or max-height property.
NonNegativeLength
A wrapper of Length, whose value must be >= 0.
NonNegativeLengthOrAuto
Either a non-negative <length> or the auto keyword.
NonNegativeLengthOrNumber
Either a non-negative <length> or a <number>.
NonNegativeLengthPercentageOrAuto
A wrapper of LengthPercentageOrAuto, whose value must be >= 0.
NonNegativeLengthPercentageOrNormal
Either a computed NonNegativeLengthPercentage or the normal keyword.
Size
A computed value for min-width, min-height, width or height property.