Length

Type Alias Length 

Source
pub type Length = CSSPixelLength;
Expand description

An alias of computed <length> value.

Aliased Type§

pub struct Length(/* private fields */);

Trait Implementations§

Source§

impl ClampToNonNegative for Length

Source§

fn clamp_to_non_negative(self) -> Self

Clamps the value to be non-negative after an animation.
Source§

impl ToAbsoluteLength for Length

Source§

fn to_pixel_length( &self, _containing_len: Option<ComputedLength>, ) -> Result<CSSFloat, ()>

Returns the absolute length as pixel value.