blob: e7a874e4a93a6ec07045d571ae83678bceac2f30 [file] [log] [blame]
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<script>
if (window.internals) {
window.internals.settings.setStandardFontFamily("Ahem", "Hans");
window.internals.settings.setFantasyFontFamily("Ahem", "Hans");
window.internals.setUserPreferredLanguages("en", "zh-cn");
}
</script>
</head>
<body>
<!-- Test for language-sensitive font selection (bug 10874). Some fonts for
Simplified Han script is set to Ahem and the divs are set to language zh_CN
which corresponds to that script. The test passes if all divs are in Ahem
font.
-->
<div style="font-size: 20px">
<div style="font-family: 'Ahem'">this is ahem font</div>
<div lang="zh-CN">this is ahem font</div>
<div id="target1" lang="ar">this is ahem font</div>
<div xml:lang="zh-CN">this is ahem font</div>
</div>
<script>
document.getElementById("target1").lang = "zh-CN";
</script>
</body>
</html>