Fix for Safari's buggy CSS calc support