Skip to main content

calc_min

Function calc_min 

Source
pub fn calc_min(a: CSSFloat, b: CSSFloat) -> CSSFloat
Expand description

Computes the minimum value of the two floats. The CSS Values and Units definition for min() considers -0 to be less than +0 (whereas Rust considers them equal). https://drafts.csswg.org/css-values-4/#css-signed-zero