Objective: Is the CSS styling picked up in the simplest case?
The style element says: div[xml|lang |="es"] { background-color:green; color:white; } div[xml\:lang |="es"] { background-color:blue; color:white; } Markup is <div xml:lang="es">Green or blue</div>.
Check that the text describes the color you see.
Objective: Does an attribute value with another subtag cause the styling to fail?
The style element says: div[xml|lang |="es"] { background-color:green; color:white; } div[xml\:lang |="es"] { background-color:blue; color:white; } Markup is <div xml:lang="es-MX">Green or blue</div>.
Check that the text describes the color you see.
Objective: Does an attribute value in a different case cause the styling to fail?
The style element says: div[xml|lang |="es"] { background-color:green; color:white; } div[xml\:lang |="es"] { background-color:blue; color:white; } Markup is <div xml:lang="ES">Green or blue</div>.
Check that the text describes the 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[xml|lang |="es"] { background-color:green; color:white; } div[xml\:lang |="es"] { background-color:blue; color:white; } Markup is <div xml:lang="MX-es">White</div>.
Check that the text describes the color you see.
Objective: Is the CSS styling picked up when a region is specified in the CSS?
The style element says: div[xml|lang |="en-GB"] { background-color:green; color:white; } div[xml\:lang |="en-GB"] { background-color:blue; color:white; } Markup is <div xml:lang="en-GB">Green or blue </div>.
Check that the text describes the color you see.
Objective: Does an attribute value with an additional subtag cause the styling to fail?
The style element says: div[xml|lang |="en-GB"] { background-color:green; color:white; } div[xml\:lang |="en-GB"] { background-color:blue; color:white; } Markup is <div xml:lang="en-GB-scouse">Green or blue </div>.
Check that the text describes the color you see.
Objective: Does a non-matched following subtag in the attribute value cause the styling to fail?
The style element says: div[xml|lang |="en-GB"] { background-color:green; color:white; } div[xml\:lang |="en-GB"] { background-color:blue; color:white; } Markup is <div xml:lang="en-US">White</div>.
Check that the text describes the color you see.
Objective: Does an attribute value without a second subtag cause the styling to fail?
The style element says: div[xml|lang |="en-GB"] { background-color:green; color:white; } div[xml\:lang |="en-GB"] { background-color:blue; color:white; } Markup is <div xml:lang="en">White</div>.
Check that the text describes the 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[xml|lang |="az-Arab-IR"] { background-color:green; color:white; } div[xml\:lang |="az-Arab-IR"] { background-color:blue; color:white; } Markup is <div xml:lang="az-Arab-IR">Green or blue</div>.
Check that the text describes the color you see.
Objective: Is the CSS styling picked up when the script is omitted in the attribute value?
The style element says: div[xml|lang |="az-Arab-IR"] { background-color:green; color:white; } div[xml\:lang |="az-Arab-IR"] { background-color:blue; color:white; } Markup is <div xml:lang="az-IR">White</div>. The HTML specification doesn't specify this behavior.
If the styling is picked up, you should see green text.
Objective: Is the CSS styling picked up when the script is omitted in the CSS selector?
The style element says: div[xml|lang |="cs-CZ"] { background-color:green; color:white; } div[xml\:lang |="cs-CZ"] { background-color:blue; color:white; } Markup is <div xml:lang="cs-Latn-CZ">White</div>. The HTML specification doesn't specify this behavior.
If the styling is picked up, you should see green text.
Objective: Does a change in case in the script subtag of the attribute value cause the styling to fail?
The style element says: div[xml|lang |="az-Arab-IR"] { background-color:green; color:white; } div[xml\:lang |="az-Arab-IR"] { background-color:blue; color:white; } Markup is <div xml:lang="az-arab-IR">White</div>.
Check that the text describes the 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[xml|lang |="fr"] { background-color:green; color:white; } p[xml\:lang |="fr"] { background-color:blue; color:white; } Markup is <p xml:lang="fr">Green or blue <em>green or blue</em></p>.
Check that the text describes the color you see.
Green or blue green or blue
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[xml|lang |="fr"] { background-color:green; color:white; } p[xml\:lang |="fr"] { background-color:blue; color:white; } Markup is <div xml:lang="fr">White<p>White</p></div>.
Check that the text describes the color you see.
White
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[xml|lang |="de"] { background-color:green; color:white; } em[xml\:lang |="de"] { background-color:blue; color:white; } Markup is <p xml:lang="de">White<em>white</em></p>.
Check that the text describes the color you see.
White white
Version: $Id: test-css-lang-5.html,v 1.2 2008/07/23 12:19:52 rishida Exp $