Expand description
Private module of type aliases so we can refer to stylo types with nicer names
StructsΒ§
- Align
Flags π - Constants shared by multiple CSS Box Alignment properties
- Content
Distribution π - Shared value for the
align-contentandjustify-contentproperties. - Display π
- Grid
Auto πFlow - Controls how the auto-placement algorithm works specifying exactly how auto-placed items get flowed into the grid: [ row | column ] || dense https://drafts.csswg.org/css-grid-2/#grid-auto-flow-property
- Length
Percentage π - A
<length-percentage>value. This can be either a<length>, a<percentage>, or a combination of both viacalc(). - NonNegative π
- A wrapper of Non-negative values.
- Percentage π
- A computed percentage.
EnumsΒ§
- BoxSizing π
- Display
Inside π - Display
Outside π - Defines an elementβs display type, which consists of the two basic qualities of how an element generates boxes https://drafts.csswg.org/css-display/#propdef-display
- Generic
Grid πTemplate Component - Variants for
<grid-template-rows> | <grid-template-columns> - Generic
Inset π - Specified type for
insetproperties, which allows the use of theanchor()function. Note(dshin):LengthPercentageOrAutois not used here because havingLengthPercentageOrAutoandAnchorFunctionin the enum pays the price of the discriminator forLengthPercentage | Autoas well asLengthPercentageOrAuto | AnchorFunction. This increases the size of the style struct, which would not be great. On the other hand, we trade for code duplication, so⦠:( - Generic
Length πPercentage OrNormal - A generic
<length-percentage>| normal` value. - Generic
Margin π - Specified type for
marginproperties, which allows the use of theanchor-size()function. - Generic
MaxSize π - A generic value for the
max-widthormax-heightproperty. - Generic
Size π - A generic value for the
width,height,min-width, ormin-heightproperty. - Overflow π
- The value for the
overflow-x/overflow-yproperties. - Position π
- Preferred
Ratio π - Ratio or None.
- Repeat
Count π - The initial argument of the
repeatfunction. - Track
Breadth π - A track breadth for explicit grid track sizing. Itβs generic solely to avoid re-implementing it for the computed type.
- Track
List πValue - Track list values. Can be
or - 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> - Unpacked
Length πPercentage - An unpacked
<length-percentage>that borrows thecalc()variant.