Expand description
Re-exportsยง
pub use super::image::Image;pub use super::image::EndingShape as GradientEndingShape;pub use super::image::Gradient;
Macrosยง
Structsยง
- Length
- An extension to
NoCalcLengthto parsecalcexpressions. This is commonly used for the<length>values. - NoCalc
Length - A
<length>without takingcalcexpressions into account
Enumsยง
- Font
Base Size - A source to resolve font-relative units against
- Length
Percentage - A
<length-percentage>value. This can be either a<length>, a<percentage>, or a combination of both viacalc(). - Length
Unit - The unit of a
<length>value. Note that if any new font-relative value is added here,custom_properties::NonCustomReferences::from_unitmust also be updated. Consult the comment in that function as to why. - Line
Height Base - A source to resolve font-relative line-height units against.
- Parse
Anchor ๐Functions - 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
Traitsยง
- Equals
Percentage - Check if this equal to a specific percentage.
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.