The problem is that div and rem are a combo: the reminder is undefined if the division overflows. I don't know if we should change this...