style::values::specified::effects

Function clamp_to_one

source
fn clamp_to_one(number: NumberOrPercentage) -> NumberOrPercentage
Expand description

Clamp the value to 1 if the value is over 100%.