Type Alias style::values::specified::ClipRect

source ·
pub type ClipRect = GenericClipRect<LengthOrAuto>;
Expand description

rect(…)

Aliased Type§

struct ClipRect {
    pub top: GenericLengthPercentageOrAuto<Length>,
    pub right: GenericLengthPercentageOrAuto<Length>,
    pub bottom: GenericLengthPercentageOrAuto<Length>,
    pub left: GenericLengthPercentageOrAuto<Length>,
}

Fields§

§top: GenericLengthPercentageOrAuto<Length>§right: GenericLengthPercentageOrAuto<Length>§bottom: GenericLengthPercentageOrAuto<Length>§left: GenericLengthPercentageOrAuto<Length>

Implementations§

source§

impl ClipRect

source

fn parse_quirky<'i, 't>( context: &ParserContext<'_>, input: &mut Parser<'i, 't>, allow_quirks: AllowQuirks, ) -> Result<Self, ParseError<'i>>

Parses a rect(, , , ), allowing quirks.

Trait Implementations§

source§

impl Parse for ClipRect

source§

fn parse<'i, 't>( context: &ParserContext<'_>, input: &mut Parser<'i, 't>, ) -> Result<Self, ParseError<'i>>

Parse a value of this type. Read more