Full version, Basic version, Tiny version

Specification link: 5.8 Conditional processing

struct-cond-01-t ← index → struct-cond-03-t

# struct-cond-02-t
SVG Image | PNG Image

This tests ability to use the 'systemLanguage' as a test attribute within a switch element. To pass, either

1. the name (in English) of the current system language, or
2. the names of the three languages (English, French Japanese) of W3C

must appear. The second case will occur if either the user language is not one of the (60 or so) languages present in the test, or if there is no user language information available.

It is an error to display no output; the last child of switch has no test, so it will always be taken unless a more suitable child has already evaluated to true.

In addition, the string "Why don't they just speak <language>" should appear in the center of the graphic, translated into that language. It is not an error for some or all of this string to display as 'missing character' glyphs, if no suitable font is available - however, this is unlikely if the language is indeed the users primary language. (It can easily occur during testing, however).

struct-cond-01-t ← index → struct-cond-03-t

Distributed under both the W3C Test Suite License and the W3C 3-clause BSD License.
To contribute to a W3C Test Suite, see the policies and contribution forms.