codepen.io/cbolson/full...
codepen.io/cbolson/full...
So, as they are the same unit, calc() is cancelling them out to give 0.5, just as calc(5px / 10px) will also return 0.5
On the other hand calc(5px / 10hz) will fail as the units are not compatible (at least it does in my tests)
So, as they are the same unit, calc() is cancelling them out to give 0.5, just as calc(5px / 10px) will also return 0.5
On the other hand calc(5px / 10hz) will fail as the units are not compatible (at least it does in my tests)
MDN suggests not.
MDN suggests not.