pub type GridTemplateComponent = GridTemplateComponent<LengthPercentage, Integer>;
Expand description

<grid-template-rows> | <grid-template-columns>

Aliased Type§

enum GridTemplateComponent {
    None,
    TrackList(Box<GenericTrackList<LengthPercentage, i32>>),
    Subgrid(Box<GenericLineNameList<i32>>),
    Masonry,
}

Variants§

§

None

none value.

§

TrackList(Box<GenericTrackList<LengthPercentage, i32>>)

The grid <track-list>

§

Subgrid(Box<GenericLineNameList<i32>>)

A subgrid <line-name-list>? TODO: Support animations for this after subgrid is addressed in [grid-2] spec.

§

Masonry

masonry value. https://github.com/w3c/csswg-drafts/issues/4650

Trait Implementations§

source§

impl ComputeSquaredDistance for GridTemplateComponent

source§

fn compute_squared_distance(&self, _other: &Self) -> Result<SquaredDistance, ()>

Computes the squared distance between two animatable values.
source§

impl ToAnimatedZero for GridTemplateComponent

source§

fn to_animated_zero(&self) -> Result<Self, ()>

Returns a value that, when added with an underlying value, will produce the underlying value. This is used for SMIL animation’s “by-animation” where SMIL first interpolates from the zero value to the ‘by’ value, and then adds the result to the underlying value. Read more