blob: f6ecdf5efc8016f72a96da3027a8007f8c24b3ff [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
</head>
<body>
This test makes sure that the "lang" attribute is properly consulted when using fallback fonts. The first character
is shown with a lang which represents Simplified Chinese, and the second character is shown with a lang which
represents Traditional Chinese. The character is one which is drawn differently in the two languages, so the
two characters should look different. This tests against a hardcoded font selection which should be the result of
FontCache::systemFallbackForCharacters().
<div style="font: 200px Times;">
<span lang="zh-Hans" style="font-family: STSongti-SC-Regular;">&#x9ad4;</span>
<span lang="zh-Hant" style="font-family: STSongti-TC-Regular;">&#x9ad4;</span>
</div>
</body>
</html>