🤩 Turns out *both* Chrome & Safari quietly implemented calc(length/length) last...
Lea Verou, PhD @leaverou@front-end.social
🤩 Turns out *both* Chrome & Safari quietly implemented calc(length/length) last year and it's reached 80% market share!
Testcase: https://codepen.io/leaverou/pen/ByQyWYa?editors=1100
caniuse: https://caniuse.com/mdn-css_types_calc_typed_division_produces_unitless_number
@JaneOri tan(atan2()) hack can work in Firefox as a fallback, as long as you register the operands as lengths to convert to px https://dev.to/janeori/css-type-casting-to-numeric-tanatan2-scalars-582j