Expand description
Generic types for CSS handling of specified and computed values of
position
Re-exports§
pub use self::GenericPosition as Position;
pub use self::GenericPositionOrAuto as PositionOrAuto;
pub use self::GenericZIndex as ZIndex;
pub use self::GenericAspectRatio as AspectRatio;
pub use self::GenericInset as Inset;
Structs§
- Anchor function used by inset properties. This resolves to length at computed time.
- A generic value for the
aspect-ratio
property, the value isauto || <ratio>
. - A generic type for representing a CSS position.
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 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 type for representing an
Auto | <position>
. This is used byfor now. https://drafts.fxtf.org/motion-1/#offset-anchor-property - A generic value for the
z-index
property. - Ratio or None.
Traits§
- Implements a method that checks if the position is centered.