fn resolve_alpha(opacity: UnitInterval, alpha: Option<f32>) -> Option<f32>
Expand description

Takes the opacity property and an alpha value from a CSS <color> and returns a resulting alpha for a computed value.

alpha is Option<f32> because that is what cssparser uses everywhere.