Summarized test results:
Language-based font assignment

Intended audience: users, XHTML/HTML coders (using editors or scripting), script developers (PHP, JSP, etc.), CSS coders, Web project managers, and anyone who wants to know how browsers handle automatic language-based font assignment.


These tests check user agents will select different fonts for display of ideographic text purely on the basis of the language declared in language attributes.

Some browsers apply the fonts listed in the user font preferences to the display of HTML Unicode text in Traditional Chinese, Simplified Chinese, Japanese and Korean, depending on the setting of the lang/xml:lang attribute. Note that this is not specified in the HTML or CSS specifications, and, of course, doesn't apply where explicit styling is applied.

Note that the snapshot summaries of these test results are for released versions of the browsers tested. Versions that are still in development may provide better support for these features. The tests themselves do not test any vendor prefixes.


To see the test, click on the link in the left-most column. To see detailed results for a single test, click on the link in the right-most column. To submit test data for a single test, click on the link in the right-most column and then follow the link on that page.

The tables show the latest results from the W3C Test Framework. Below the tables are summaries of the results at a given date. The table data may be more up-to-date than the summary. The tables may also contain some incorrectly scored tests, and tests that relate to non-released versions of browsers. These are not included in the summary.

Assertion Gecko Presto Trident WebKit Detailed results
CJK font assignment (html) [Exploratory test] If no font-family is applied using styling, the user agent will select different fonts for display of ideographic text as the language attribute values vary in the markup.

Snapshot summary, 2011-12-20

Internet Explorer, Firefox and Opera automatically change the font (in the absence of any other CSS font assigment) depending on the language of the content as specified using the lang attribute.

Chrome and Safari do not.