I noticed that some stylesheets have something like this:
body { font-size: 62.5%/1.2em; }
I got a warning “unexpected token /” when I wrote this in NetBeans. And if I changed the EM value, say,
body { font-size: 62.5%/1em; }
the computed font-size remained 16px.
My question is, Is it standard compliant to write something like that? And how to computed the actual font-size?
In CSS2, the
font-sizeproperty does not allow a value of the formx/y.What you’re using is the
fontshort hand property, which allowsx/yas a short-hand offont-size: x; line-height: y;. So either useor