pub type Transform = Transform<TransformOperation>;Expand description
A specified CSS transform
Aliased Type§
#[repr(C)]pub struct Transform(pub OwnedSlice<GenericTransformOperation<Angle, Number, Length, Integer, LengthPercentage>>);Tuple Fields§
§0: OwnedSlice<GenericTransformOperation<Angle, Number, Length, Integer, LengthPercentage>>Implementations§
Source§impl Transform
impl Transform
Sourcepub(crate) fn parse_legacy<'i, 't>(
context: &ParserContext<'_>,
input: &mut Parser<'i, 't>,
) -> Result<Self, ParseError<'i>>
pub(crate) fn parse_legacy<'i, 't>( context: &ParserContext<'_>, input: &mut Parser<'i, 't>, ) -> Result<Self, ParseError<'i>>
Parse the transform property value, allowing unitless perspective values.
This is used for -webkit-transform which allows unitless values for perspective.
Sourcefn parse_internal<'i, 't>(
context: &ParserContext<'_>,
input: &mut Parser<'i, 't>,
allow_unitless_perspective: AllowUnitlessPerspective,
) -> Result<Self, ParseError<'i>>
fn parse_internal<'i, 't>( context: &ParserContext<'_>, input: &mut Parser<'i, 't>, allow_unitless_perspective: AllowUnitlessPerspective, ) -> Result<Self, ParseError<'i>>
Internal parse function for deciding if we wish to accept prefixed values or not
transform allows unitless zero angles as an exception, see:
https://github.com/w3c/csswg-drafts/issues/1162