Skip to main content

Perspective

Type Alias Perspective 

Source
pub type Perspective = GenericPerspective<NonNegativeLength>;
Expand description

A specified value for the perspective property.

Aliased Type§

#[repr(C, u8)]
pub enum Perspective { Length(NonNegative<Length>), None, }

Variants§

§

Length(NonNegative<Length>)

A non-negative length.

§

None

The keyword none.

Implementations§

Source§

impl Perspective

Source

pub(crate) fn parse_legacy( context: &ParserContext<'_>, input: &mut Parser<'_>, ) -> Result<Self, ParseError>

Parses a -webkit-perspective value.