Type Alias TransformOrigin

Source
pub type TransformOrigin = TransformOrigin<OriginComponent<HorizontalPositionKeyword>, OriginComponent<VerticalPositionKeyword>, Length>;
Expand description

The specified value of a CSS <transform-origin>

Aliased Type§

#[repr(C)]
pub 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

Source

pub fn initial_value() -> Self

Returns the initial specified value for transform-origin.

Source

pub fn zero_zero() -> Self

Returns the 0 0 value.

Trait Implementations§

Source§

impl Parse for TransformOrigin

Source§

fn parse<'i, 't>( context: &ParserContext<'_>, input: &mut Parser<'i, 't>, ) -> Result<Self, ParseError<'i>>

Parse a value of this type. Read more