css - Firefox: calc() invalid property value -


i have element line-height set calc():

line-height: calc(3rem / 2); 

demo: http://codepen.io/ghodmode/pen/vlxzzd

it works fine in chrome, firefox's developer tools says it's invalid property value.

i'm sure i'm missing should obvious.

just reference:

thank you.

this known issue. firefox not support calc() values on properties accept either lengths or numbers, of line-height 1 such property. see bug 594933.

since 3rem / 2 1.5rem can hardcode amount instead workaround.


Comments

Popular posts from this blog

how to insert data php javascript mysql with multiple array session 2 -

multithreading - Exception in Application constructor -

windows - CertCreateCertificateContext returns CRYPT_E_ASN1_BADTAG / 8009310b -