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§
- Character
Width - HTML5 “character width”, as defined in HTML5 § 14.5.4.
Enums§
- Absolute
Length - Represents an absolute length with its unit
- Container
Relative Length - A container query length.
- Font
Base Size - A source to resolve font-relative units against
- Font
Relative Length - 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. - Length
- An extension to
NoCalcLength
to parsecalc
expressions. This is commonly used for the<length>
values. - Length
Percentage - A
<length-percentage>
value. This can be either a<length>
, a<percentage>
, or a combination of both viacalc()
. - Line
Height Base - A source to resolve font-relative line-height units against.
- NoCalc
Length - A
<length>
without takingcalc
expressions into account - Viewport
Percentage Length - A viewport-relative length.
- Viewport
Unit 🔒 - https://drafts.csswg.org/css-values/#viewport-relative-units
- Viewport
Variant - https://drafts.csswg.org/css-values/#viewport-variants
Constants§
- PX_
PER_ CM - Number of pixels per centimeter
- PX_
PER_ IN - Number of pixels per inch
- PX_
PER_ MM - Number of pixels per millimeter
- PX_
PER_ PC - Number of pixels per pica
- PX_
PER_ PT - Number of pixels per point
- PX_
PER_ Q - Number of pixels per quarter
Functions§
Type Aliases§
- Length
OrAuto - Either a
<length>
or theauto
keyword. - Length
OrNumber - Either a
<length>
or a<number>
. - Length
Percentage OrAuto - A specified type for
<length-percentage> | auto
. - Margin
- A specified value for
margin
properties. - MaxSize
- A specified value for
max-width
ormax-height
property. - NonNegative
Length - A wrapper of Length, whose value must be >= 0.
- NonNegative
Length OrAuto - Either a non-negative
<length>
or theauto
keyword. - NonNegative
Length OrNumber - A specified non-negative
<length>
|<number>
. - NonNegative
Length Percentage - A wrapper of LengthPercentage, whose value must be >= 0.
- NonNegative
Length Percentage OrAuto - A wrapper of LengthPercentageOrAuto, whose value must be >= 0.
- NonNegative
Length Percentage OrNormal - Either a NonNegativeLengthPercentage or the
normal
keyword. - Size
- A specified value for
min-width
,min-height
,width
orheight
property.