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: LengthThe 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