layout_2020::taffy::stylo_taffy::convert

Module stylo

Source
Expand description

Private module of type aliases so we can refer to stylo types with nicer names

Structs§

  • AlignFlags 🔒
    Constants shared by multiple CSS Box Alignment properties
  • Shared value for the align-content and justify-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 via calc().
  • A wrapper of Non-negative values.
  • Percentage 🔒
    A computed percentage.

Enums§

  • BoxSizing 🔒
  • 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 the anchor() function. Note(dshin): LengthPercentageOrAuto is not used here because having LengthPercentageOrAuto and AnchorFunction in the enum pays the price of the discriminator for LengthPercentage | Auto as well as LengthPercentageOrAuto | 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 the anchor-size() function.
  • A generic value for the max-width or max-height property.
  • A generic value for the width, height, min-width, or min-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
  • TrackSize 🔒
    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>

Type Aliases§