Type Alias style::values::specified::effects::BoxShadow

source ·
pub type BoxShadow = BoxShadow<Option<Color>, Length, Option<NonNegativeLength>, Option<Length>>;
Expand description

A specified value for a single shadow of the box-shadow property.

Aliased Type§

struct BoxShadow {
    pub base: GenericSimpleShadow<Option<Color>, Length, Option<NonNegative<Length>>>,
    pub spread: Option<Length>,
    pub inset: bool,
}

Fields§

§base: GenericSimpleShadow<Option<Color>, Length, Option<NonNegative<Length>>>

The base shadow.

§spread: Option<Length>

The spread radius.

§inset: bool

Whether this is an inset box shadow.

Trait Implementations§

source§

impl Parse for BoxShadow

source§

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

Parse a value of this type. Read more
source§

impl ToComputedValue for BoxShadow

source§

type ComputedValue = GenericBoxShadow<GenericColor<Percentage>, CSSPixelLength, NonNegative<CSSPixelLength>, CSSPixelLength>

The computed value type we’re going to be converted to.
source§

fn to_computed_value(&self, context: &Context<'_>) -> Self::ComputedValue

Convert a specified value to a computed value, using itself and the data inside the Context.
source§

fn from_computed_value(computed: &ComputedBoxShadow) -> Self

Convert a computed value to specified value form. Read more