Skip to main content

calc_max

Function calc_max 

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

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