This is a known issue. Firefox currently does not support calc() values ββfor properties that accept either lengths or numbers, of which line-height is one such property. See error 594933 .
Since 3rem / 2 is exactly 1.5rem, you can simply write this number as a workaround.
source share