CSSPosition
Support for declaring a 2D coordinate relative to some element rectangle.
We also introduce the Edge class to support a strongly-typed API for the position concept. For example, CSSPosition(Edge.Left, Edge.Top)
You can specify an offset from an edge by "invoking" it: CSSPosition(Edge.Left(10.percent), Edge.Top(20.percent))
For more information about position values and what they mean, see: https://developer.mozilla.org/en-US/docs/Web/CSS/position_value
Constructors
Link copied to clipboard
constructor(x: CSSLengthOrPercentageNumericValue = 50.percent, y: CSSLengthOrPercentageNumericValue = 50.percent)