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§
- A
<grid-line>
type. - A
<track-size>+
. We use the empty slice asauto
, and always parseauto
as an empty slice. This means it’s impossible to have a slice containing only one auto item. - The
<line-name-list>
for subgrids. - The
<name-repeat>
for subgrids. - A grid
<track-list>
type. - The structure containing
<line-names>
and<track-size>
values.
Enums§
- Variants for
<grid-template-rows> | <grid-template-columns>
- A single value for
<line-names>
or<name-repeat>
. - A track breadth for explicit grid track sizing. It’s generic solely to avoid re-implementing it for the computed type.
- Track list values. Can be
or - 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>
- The initial argument of the
repeat
function.
Constants§
- See above.
- 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§
- Helper function for serializing identifiers with a prefix and suffix, used for serializing
(in grid).