Quote:
Originally Posted by tshering
What I meant to say is that "readingLineHeight=1.3" is maybe translated by the software to "body { line-height: 1.3em; }", and that this results in different absolute values in elements that inherit it, if one compares it with "body { line-height: 1.3; }". Whether readingLineHeight is handlet in this way, I don't know. Therefore it is a speculation.
|
Trouble is, those two CSS statements are equivalent. They both mean, in English, "the total height of a line should be 130% of the font size used on that line." If the font size in a given paragraph is 10 points, that means a line height of 13 points. If there's a 20-point header, its height will be 26 points. That's because an "em" isn't a static value; it always reflects the current font size.
I think what you mean to say is that your theory is that the software calculates the baseline font size in terms of rendered pixels or some other absolute final value, and then mistakenly multiplies
that by the line-height - such that line-height gets converted to an absolute unit instead of the relative value it ought to carry. At least, that would explain the results you report.