Expand description
Generic types for the handling of grids.
Re-exports§
pub use self::GenericGridLine as GridLine;pub use self::GenericTrackBreadth as TrackBreadth;pub use self::GenericTrackSize as TrackSize;pub use self::GenericImplicitGridTracks as ImplicitGridTracks;pub use self::GenericTrackRepeat as TrackRepeat;pub use self::GenericTrackListValue as TrackListValue;pub use self::GenericTrackList as TrackList;pub use self::GenericNameRepeat as NameRepeat;pub use self::GenericLineNameListValue as LineNameListValue;pub use self::GenericLineNameList as LineNameList;pub use self::GenericGridTemplateComponent as GridTemplateComponent;
Structs§
- Generic
Grid Line - A
<grid-line>type. - Generic
Implicit Grid Tracks - A
<track-size>+. We use the empty slice asauto, and always parseautoas an empty slice. This means it’s impossible to have a slice containing only one auto item. - Generic
Line Name List - The
<line-name-list>for subgrids. - Generic
Name Repeat - The
<name-repeat>for subgrids. - Generic
Track List - A grid
<track-list>type. - Generic
Track Repeat - The structure containing
<line-names>and<track-size>values.
Enums§
- Generic
Grid Template Component - Variants for
<grid-template-rows> | <grid-template-columns> - Generic
Line Name List Value - A single value for
<line-names>or<name-repeat>. - Generic
Track Breadth - A track breadth for explicit grid track sizing. It’s generic solely to avoid re-implementing it for the computed type.
- Generic
Track List Value - Track list values. Can be
or - Generic
Track Size - A
<track-size>type for explicit grid track sizing. Like<track-breadth>, this is generic only to avoid code bloat. It only takes<length-percentage> - Repeat
Count - The initial argument of the
repeatfunction.
Constants§
- MAX_
GRID_ LINE - See above.
- MIN_
GRID_ LINE - These are the limits that we choose to clamp grid line numbers to. http://drafts.csswg.org/css-grid/#overlarge-grids line_num is clamped to this range at parse time.
Functions§
- concat_
serialize_ idents - Helper function for serializing identifiers with a prefix and suffix, used
for serializing
(in grid).