pub type BorderImageSlice = GenericBorderImageSlice<NonNegativeNumberOrPercentage>;Expand description
A specified value for the border-image-slice property.
Aliased Type§
#[repr(C)]pub struct BorderImageSlice {
pub offsets: Rect<NonNegative<NumberOrPercentage>>,
pub fill: bool,
}Fields§
§offsets: Rect<NonNegative<NumberOrPercentage>>The offsets.
fill: boolWhether to fill the middle part.
Implementations§
Source§impl BorderImageSlice
impl BorderImageSlice
Sourcepub fn hundred_percent() -> Self
pub fn hundred_percent() -> Self
Returns the 100% value.
Trait Implementations§
Source§impl Parse for BorderImageSlice
impl Parse for BorderImageSlice
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