I also thought I would have convert to a base unit at first. As it turned out getComputedStyles already returns then converted for us. But that's why I mix units in the tests. To proof it.