Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / text / international / font-fallback-to-common-script.html
blobe44c4fcf4ea67488e7215bbdfc91be1f9da6ef93
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script>
5 if (window.internals) {
6 window.internals.settings.setStandardFontFamily("Times", "Hans");
7 window.internals.settings.setStandardFontFamily("", "Hans");
8 window.internals.settings.setStandardFontFamily("Ahem", "Zyyy");
10 window.internals.settings.setSansSerifFontFamily("Ahem", "Zyyy");
12 </script>
13 </head>
14 <body>
15 <!-- Test for font fallback to the common script when the per-script font setting is missing or the empty string.
16 Bug 81329 <https://bugs.webkit.org/show_bug.cgi?id=81329> -->
17 <div style="font-size: 20px">
18 <div lang="zh-CN">this is ahem font</div>
20 <!-- Test fallback to common script when no setting is set. This assumes there is no setting for "Zxxx" (script code for unwritten languages). -->
21 <div lang="und-Zxxx" style="font-family: sans-serif;">this is ahem font</div>
22 </div>
23 </body>
24 </html>