Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / text / international / lang-sensitive-fonts.html
blob12123584cba2b8f19e2bd3cbe9cf1b407a7f7f50
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script>
5 if (window.internals) {
6 window.internals.settings.setStandardFontFamily("Ahem", "Hans");
7 window.internals.settings.setFantasyFontFamily("Ahem", "Hans");
9 </script>
10 </head>
11 <body>
12 <!-- Test for language-sensitive font selection (bug 10874). Some fonts for
13 Simplified Han script is set to Ahem and the divs are set to language zh_CN
14 which corresponds to that script. The test passes if all divs are in Ahem
15 font, except for the final div as xml:lang should be ignored in HTML.
16 -->
17 <div style="font-size: 20px">
18 <div style="font-family: 'Ahem'">this is ahem font</div>
19 <div lang="zh-CN">this is ahem font</div>
20 <div id="target1" lang="ar">this is ahem font</div>
21 <div id="target2" lang="ar" style="font-family: sans-serif">this is ahem font</div>
22 <div xml:lang="zh-CN">this is not ahem font</div>
23 </div>
24 <script>
25 document.getElementById("target1").lang = "zh-CN";
27 document.getElementById("target2").lang = "zh-CN";
28 document.getElementById("target2").style.fontFamily = "fantasy";
29 </script>
30 </body>
31 </html>