pub trait ToAbsoluteLength {
// Required method
fn to_pixel_length(
&self,
containing_len: Option<ComputedLength>,
) -> Result<CSSFloat, ()>;
}
Expand description
Convert a length type into the absolute lengths.
Required Methods§
sourcefn to_pixel_length(
&self,
containing_len: Option<ComputedLength>,
) -> Result<CSSFloat, ()>
fn to_pixel_length( &self, containing_len: Option<ComputedLength>, ) -> Result<CSSFloat, ()>
Returns the absolute length as pixel value.