Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / text / international / lang-sensitive-fonts-xml.xhtml
blob8c7e328766da5882b9a201b5f53022064633ba17
1 <?xml version="1.0" encoding="utf-8"?>
2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3 <html xmlns="http://www.w3.org/1999/xhtml">
4 <head>
5 <script>
6 if (window.internals) {
7 window.internals.settings.setStandardFontFamily("Ahem", "Hans");
8 window.internals.settings.setFantasyFontFamily("Ahem", "Hans");
10 </script>
11 </head>
12 <body>
13 <!-- Test for language-sensitive font selection (bug 10874). Some fonts for
14 Simplified Han script is set to Ahem and the divs are set to language zh_CN
15 which corresponds to that script. The test passes if all divs are in Ahem
16 font.
17 -->
18 <div style="font-size: 20px">
19 <div style="font-family: 'Ahem'">this is ahem font</div>
20 <div lang="zh-CN">this is ahem font</div>
21 <div id="target1" lang="ar">this is ahem font</div>
22 <div id="target2" lang="ar" style="font-family: sans-serif">this is ahem font</div>
23 <div xml:lang="zh-CN">this is ahem font</div>
24 </div>
25 <script>
26 document.getElementById("target1").lang = "zh-CN";
28 document.getElementById("target2").lang = "zh-CN";
29 document.getElementById("target2").style.fontFamily = "fantasy";
30 </script>
31 </body>
32 </html>