Expand description
Re-exports§
pub use super::image::Image;
pub use super::image::EndingShape as GradientEndingShape;
pub use super::image::Gradient;
pub use crate::values::specified::calc::CalcLengthPercentage;
Macros§
Structs§
- HTML5 “character width”, as defined in HTML5 § 14.5.4.
Enums§
- Represents an absolute length with its unit
- A container query length.
- A source to resolve font-relative units against
- A font relative length. Note that if any new value is added here,
custom_properties::NonCustomReferences::from_unit
must also be updated. Consult the comment in that function as to why. - An extension to
NoCalcLength
to parsecalc
expressions. This is commonly used for the<length>
values. - A
<length-percentage>
value. This can be either a<length>
, a<percentage>
, or a combination of both viacalc()
. - A source to resolve font-relative line-height units against.
- A
<length>
without takingcalc
expressions into account - A viewport-relative length.
- https://drafts.csswg.org/css-values/#viewport-relative-units
- https://drafts.csswg.org/css-values/#viewport-variants
Constants§
- Number of pixels per centimeter
- Number of pixels per inch
- Number of pixels per millimeter
- Number of pixels per pica
- Number of pixels per point
- Number of pixels per quarter
Type Aliases§
- Either a
<length>
or theauto
keyword. - Either a
<length>
or a<number>
. - A specified type for
<length-percentage> | auto
. - A specified value for
max-width
ormax-height
property. - A wrapper of Length, whose value must be >= 0.
- Either a non-negative
<length>
or theauto
keyword. - A specified non-negative
<length>
|<number>
. - A wrapper of LengthPercentage, whose value must be >= 0.
- A wrapper of LengthPercentageOrAuto, whose value must be >= 0.
- Either a NonNegativeLengthPercentage or the
normal
keyword. - A specified value for
min-width
,min-height
,width
orheight
property.