css: Allow transitioning between different units again
This turns out to be necessary for transitioning filters, and we run into criticals if transitioning numbers unexpectedly returns NULL. I've observed that with
- { filter: invert(80%); }
This was broken in c9e972ee.