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-content
andjustify-content
properties. - 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
inset
properties, which allows the use of theanchor()
function. Note(dshin):LengthPercentageOrAuto
is not used here because havingLengthPercentageOrAuto
andAnchorFunction
in the enum pays the price of the discriminator forLengthPercentage | Auto
as 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
margin
properties, which allows the use of theanchor-size()
function. - Generic
MaxSize π - A generic value for the
max-width
ormax-height
property. - Generic
Size π - A generic value for the
width
,height
,min-width
, ormin-height
property. - Overflow π
- The value for the
overflow-x
/overflow-y
properties. - Position π
- Preferred
Ratio π - Ratio or None.
- Repeat
Count π - The initial argument of the
repeat
function. - 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.