Correctly handle the `rem` unit when importing style sheets (see #7220)