+0
−2
Loading
Bug 1729450 - Fix reference elements for text-emphasis-color.html to reliably match the expected rendering. r=emilio The screenshots of this testcase show that even though the text-emphasis-color property is working as expected, the reftest nevertheless fails because the exact position of the emphasis marks does not match between test and reference. Applying the suggested IPAMincho font, which has fixed-width Latin characters, in place of the default (proportional) font makes it come closer to matching, but still not quite. The root of the problem is that it tries to compare the rendering of emphasis marks with a "simulated" emphasis mark created by reducing the font size and using absolute positioning to try and put the mark in a suitable position. However, the actual rendering of the emphasis mark is not defined in such terms, and matching it will be difficult and fragile. The spec actually defines the rendering of emphasis marks to be equivalent to ruby text, so a more reliably correct reference rendering can be created using ruby elements with the expected emphasis-mark characters. (I note that there are already some emphasis testcases that use this approach.) Differential Revision: https://phabricator.services.mozilla.com/D124793