pub type TransformOrigin = TransformOrigin<OriginComponent<HorizontalPositionKeyword>, OriginComponent<VerticalPositionKeyword>, Length>;
Expand description
The specified value of a CSS <transform-origin>
Aliased Type§
struct TransformOrigin {
pub horizontal: OriginComponent<HorizontalPositionKeyword>,
pub vertical: OriginComponent<VerticalPositionKeyword>,
pub depth: Length,
}
Fields§
§horizontal: OriginComponent<HorizontalPositionKeyword>
The horizontal origin.
vertical: OriginComponent<VerticalPositionKeyword>
The vertical origin.
depth: Length
The depth.
Implementations§
source§impl TransformOrigin
impl TransformOrigin
sourcepub fn initial_value() -> Self
pub fn initial_value() -> Self
Returns the initial specified value for transform-origin
.
Trait Implementations§
source§impl Parse for TransformOrigin
impl Parse for TransformOrigin
source§fn parse<'i, 't>(
context: &ParserContext<'_>,
input: &mut Parser<'i, 't>,
) -> Result<Self, ParseError<'i>>
fn parse<'i, 't>( context: &ParserContext<'_>, input: &mut Parser<'i, 't>, ) -> Result<Self, ParseError<'i>>
Parse a value of this type. Read more