dvschultz / 99problems

99 Problems and e-reader rendering are all of them
60 stars 3 forks source link

Legacy RMSDK treats rem value as em #54

Open JayPanoz opened 8 years ago

JayPanoz commented 8 years ago

Legacy RMSDK a.k.a. “eBooks’ IE6 but way way way more idiot” treats rem as em.

In other words, if you’ve got

html {
    font-size: 62.5%; /* 10px */
}
body {
    font-size: 1.6rem; /* 16px */
}
p {
    font-size: 1.6rem; /* 16px */
}

What you get is

html {
    font-size: 100%; /* 16px, cos’ obviously, it is overriden and !important won’t make a difference */
}
body {
    font-size: 1.6em; /* 25.6px */
}
p {
    font-size: 1.6em; /* 40.96px */
}

And here’s the result (on the right)

default

How come this idiot can’t cope with calc() but greedily accept rem values?