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(
context: &ParserContext<'_>,
input: &mut Parser<'_>,
) -> Result<Self, ParseError>
fn parse( context: &ParserContext<'_>, input: &mut Parser<'_>, ) -> Result<Self, ParseError>
Parse a value of this type. Read more