Type Alias style::values::specified::border::BorderImageSlice

source ·
pub type BorderImageSlice = GenericBorderImageSlice<NonNegativeNumberOrPercentage>;
Expand description

A specified value for the border-image-slice property.

Aliased Type§

struct BorderImageSlice {
    pub offsets: Rect<NonNegative<NumberOrPercentage>>,
    pub fill: bool,
}

Fields§

§offsets: Rect<NonNegative<NumberOrPercentage>>

The offsets.

§fill: bool

Whether to fill the middle part.

Implementations§

source§

impl BorderImageSlice

source

pub fn hundred_percent() -> Self

Returns the 100% value.

Trait Implementations§

source§

impl Parse for BorderImageSlice

source§

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

Parse a value of this type. Read more