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§
- Generic
Anchor Function - Anchor function used by inset properties. This resolves to length at computed time.
- Generic
Aspect Ratio - A generic value for the
aspect-ratioproperty, the value isauto || <ratio>. - Generic
Position - A generic type for representing a CSS position.
Enums§
- Anchor
Side Keyword - Keyword values for the anchor positioning function.
- Generic
Anchor Side - Anchor side for the anchor positioning function.
- Generic
Inset - Specified type for
insetproperties, which allows the use of theanchor()function. Note(dshin):LengthPercentageOrAutois not used here because havingLengthPercentageOrAutoandAnchorFunctionin the enum pays the price of the discriminator forLengthPercentage | Autoas 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
Position OrAuto - A generic type for representing an
Auto | <position>. This is used byfor now. https://drafts.fxtf.org/motion-1/#offset-anchor-property - GenericZ
Index - A generic value for the
z-indexproperty. - Preferred
Ratio - Ratio or None.
Traits§
- Position
Component - Implements a method that checks if the position is centered.