5 if (window.layoutTestController) {
6 layoutTestController.overridePreference("WebKitStandardFontMap", [ "Hans", "Ahem" ]);
7 layoutTestController.overridePreference("WebKitFantasyFontMap", [ "Hans", "Ahem" ]);
12 <!-- This tests locale-sensitive font selection. Using overridePreference, the
13 fonts for Simplified Han are to Ahem font. So all divs should match. -->
14 <div style="font-size: 20px">
15 <div style="font-family: 'Ahem'">this is ahem font</div>
16 <div style="-webkit-locale: 'zh_CN'">this is ahem font</div>
17 <div style="-webkit-locale: 'zh_CN'; font-family: fantasy">this is ahem font</div>