Style.Repetition_countSourceCSS Grid track repetition counts.
This module defines how track definitions repeat in CSS Grid layouts. Repetitions can be explicit (repeat N times) or automatic (fill/fit the container).
See CSS Grid Level 1 - Auto-repeat for the specification of auto-repeated track definitions.
count n creates a repetition count of exactly n times.
Raises Invalid_argument if n is not positive.
equal a b returns true if a and b represent the same repetition count.
compare a b provides a total ordering over repetition counts. Count values are ordered first by their integer value, followed by Auto_fill, then Auto_fit.
to_string t converts t to its CSS representation. Count n yields the integer as a string, Auto_fill yields "auto-fill", and Auto_fit yields "auto-fit".
of_string s parses s as a repetition count. Accepts "auto-fit", "auto-fill", or a positive integer string. Returns Error msg if s is invalid.
pp fmt t outputs t to fmt using to_string.