Type Alias style::values::computed::TrackSize

source ·
pub type TrackSize = GenericTrackSize<LengthPercentage>;
Expand description

The computed value of a grid <track-size>

Aliased Type§

enum TrackSize {
    Breadth(GenericTrackBreadth<LengthPercentage>),
    Minmax(GenericTrackBreadth<LengthPercentage>, GenericTrackBreadth<LengthPercentage>),
    FitContent(GenericTrackBreadth<LengthPercentage>),
}

Variants§

§

Breadth(GenericTrackBreadth<LengthPercentage>)

A flexible <track-breadth>

§

Minmax(GenericTrackBreadth<LengthPercentage>, GenericTrackBreadth<LengthPercentage>)

A minmax function for a range over an inflexible <track-breadth> and a flexible <track-breadth>

https://drafts.csswg.org/css-grid/#valdef-grid-template-columns-minmax

§

FitContent(GenericTrackBreadth<LengthPercentage>)

A fit-content function.

This stores a TrackBreadth for convenience, but it can only be a LengthPercentage.

https://drafts.csswg.org/css-grid/#valdef-grid-template-columns-fit-content

Trait Implementations§

source§

impl Animate for TrackSize

source§

fn animate(&self, other: &Self, procedure: Procedure) -> Result<Self, ()>

Animate a value towards another one, given an animation procedure.