Objective: Is the CSS styling picked up in the simplest case?
The style element says: div:lang(es) { background-color:green; color:white; } Markup is <div lang="es">Green</div>.
Check that the text describes the background color you see.
Objective: Does an attribute value with another subtag cause the styling to fail?
The style element says: div:lang(es) { background-color:green; color:white; } Markup is <div lang="es-MX">Green</div>.
Check that the text describes the background color you see.
Objective: Does an attribute value in a different case cause the styling to fail?
The style element says: div:lang(es) { background-color:green; color:white; } Markup is <div lang="ES">Green</div>.
Check that the text describes the background color you see.
Objective: Is the CSS styling picked up when the language is not the first subtag in the markup value?
The style element says: div:lang(es) { background-color:green; color:white; } Markup is <div lang="MX-es">White</div>.
Check that the text describes the background color you see.
Objective: Is the CSS styling picked up when a region is specified in the CSS?
The style element says: div:lang(en-GB) { background-color:green; color:white; } Markup is <div lang="en-GB">Green</div>.
Check that the text describes the background color you see.
Objective: Does an attribute value with an additional subtag cause the styling to fail?
The style element says: div:lang(en-GB) { background-color:green; color:white; } Markup is <div lang="en-GB-scouse">Green</div>.
Check that the text describes the background color you see.
Objective: Does a non-matched following subtag in the attribute value cause the styling to fail?
The style element says: div:lang(en-GB) { background-color:green; color:white; } Markup is <div lang="en-US">White</div>.
Check that the text describes the background color you see.
Objective: Does an attribute value without a second subtag cause the styling to fail?
The style element says: div:lang(en-GB) { background-color:green; color:white; } Markup is <div lang="en">White</div>.
Check that the text describes the background color you see.
Objective: Is the CSS styling picked up when a script and region are specified in both places?
The style element says: div:lang(az-Arab-IR) { background-color:green; color:white; } Markup is <div lang="az-Arab-IR">Green</div>.
Check that the text describes the background color you see.
Objective: Is the CSS styling picked up when the script is omitted in the attribute value?
The style element says: div:lang(az-Arab-IR) { background-color:green; color:white; } Markup is <div lang="az-IR">White</div>. The HTML specification doesn't specify this behavior.
Check that the text describes the background color you see.
Objective: Is the CSS styling picked up when the script is omitted in the CSS selector? The HTML specification doesn't specify this behavior.
The style element says: div:lang(cs-CZ) { background-color:green; color:white; } Markup is <div lang="cs-Latn-CZ">White</div>.
Check that the text describes the background color you see.
Objective: Does a change in case in the script subtag of the attribute value cause the styling to fail?
The style element says: div:lang(az-Arab-IR) { background-color:green; color:white; } Markup is <div lang="az-arab-IR">Green</div>.
Check that the text describes the background color you see.
Objective: Is the styling inherited by an inline element when the language is declared on its parent block?
The style element says: p:lang (fr) { background-color:green; color:white; } Markup is <p lang="fr">Green <em>green</em></p>.
Check that the text describes the background color you see.
Green green
Objective: Is the styling inherited by a block element styled by the CSS when the language is declared on its ancestor, rather than on the element itself?
The style element says: p:lang (fr) { background-color:green; color:white; } Markup is <div lang="fr">White <p>Green</p></div>.
Check that the text describes the background color you see.
Green
Objective: Is the styling inherited by an inline element styled by the CSS when the language is declared on its ancestor, rather than on the element itself?
The style element says: em:lang(de) { background-color:green; color:white; } Markup is <p lang="de">White <em>green</em></p>.
Check that the text describes the background color you see.
White green
Objective: Is the styling applied by the xml:lang attribute in a document treated as HTML?
This file is served as text/html. The stylesheet says: div:lang(es) { background-color:green; color:white; }. The markup is <div xml:lang="es">White</div>.
Check that the text describes the background color you see.
Version: $Id: test-css-lang-1.html,v 1.2 2008/07/23 12:19:52 rishida Exp $