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_unitmust also be updated. Consult the comment in that function as to why. - Length
- An extension to
NoCalcLengthto parsecalcexpressions. 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 takingcalcexpressions 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§
- is_
fit_ 🔒content_ function_ enabled - is_
stretch_ 🔒enabled - is_
webkit_ 🔒fill_ available_ enabled_ in_ all_ size_ properties - is_
webkit_ 🔒fill_ available_ enabled_ in_ width_ and_ height
Type Aliases§
- Length
OrAuto - Either a
<length>or theautokeyword. - Length
OrNumber - Either a
<length>or a<number>. - Length
Percentage OrAuto - A specified type for
<length-percentage> | auto. - Margin
- A specified value for
marginproperties. - MaxSize
- A specified value for
max-widthormax-heightproperty. - NonNegative
Length - A wrapper of Length, whose value must be >= 0.
- NonNegative
Length OrAuto - Either a non-negative
<length>or theautokeyword. - 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
normalkeyword. - Size
- A specified value for
min-width,min-height,widthorheightproperty.