Module style::values::generics::position

source ·
Expand description

Generic types for CSS handling of specified and computed values of position

Re-exports§

Structs§

Enums§

  • Anchor side for the anchor positioning function.
  • Keyword values for the anchor positioning function.
  • 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 type for representing an Auto | <position>. This is used by for now. https://drafts.fxtf.org/motion-1/#offset-anchor-property
  • A generic value for the z-index property.
  • Ratio or None.

Traits§