Closed Bug 1138527 Opened 7 years ago Closed 7 years ago
when font inflation is enabled, CSS ruby should not be inflated differently from the base text
Currently, we apply font inflation calculations to ruby text independently of the calculation for the base text. This means we're liable to inflate the ruby annotation much more than the base, and thereby lose the expected size contrast and mess up the layout. I think that for <rt>, we should inflate only as much as the inflation being applied to the base text, even though this will typically leave the ruby text smaller than the minimum size being applied to normal text in the same inflation container.
Here's a reftest that currently fails because we inflate the ruby text independently of its base text.
Identical to jfkthame's patch, except the order in reftest.list and removal of "fails". Thanks for the great reftest, jfkthame.
Attachment #8571645 - Flags: review?(roc) → review+
Attachment #8571646 - Flags: review?(roc) → review+
Is it really necessary to modify that code, or should you instead be making sure that ruby annotation containers don't end up being a font inflation container?
I don't think ruby annotation containers are ever font inflation container.  (Though some code there doesn't use a proper name.)  https://dxr.mozilla.org/mozilla-central/source/layout/generic/nsFrame.cpp#441
You need to log in before you can comment on or make changes to this bug.