Expand description
Private module of type aliases so we can refer to stylo types with nicer names
Structs§
- Constants shared by multiple CSS Box Alignment properties
- Shared value for the
align-content
andjustify-content
properties. - Display 🔒
- 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
- A
<length-percentage>
value. This can be either a<length>
, a<percentage>
, or a combination of both viacalc()
. - A wrapper of Non-negative values.
- A computed percentage.
Enums§
- 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
- Variants for
<grid-template-rows> | <grid-template-columns>
- 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… :( - A generic
<length-percentage>
| normal` value. - Specified type for
margin
properties, which allows the use of theanchor-size()
function. - A generic value for the
max-width
ormax-height
property. - A generic value for the
width
,height
,min-width
, ormin-height
property. - Overflow 🔒The value for the
overflow-x
/overflow-y
properties. - Position 🔒
- Ratio or None.
- The initial argument of the
repeat
function. - 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>