Type Alias style::values::computed::length::Length

source ·
pub type Length = CSSPixelLength;
Expand description

An alias of computed <length> value.

Aliased Type§

struct Length(f32);

Fields§

§0: f32

Trait Implementations§

source§

impl ToAbsoluteLength for Length

source§

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

Returns the absolute length as pixel value.