Type Alias style::values::specified::transform::TransformOrigin

source ·
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

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