1 <!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
4 <TITLE>CSS1 Test Suite:
5.4.5 text-transform
</TITLE>
5 <META http-equiv=
"Content-Type" content=
"text/html; charset=iso-8859-1">
6 <META http-equiv=
"Content-Style-Type" content=
"text/css">
8 <LINK rel=
"stylesheet" type=
"text/css" media=
"screen" href=
"../resources/base.css">
9 <STYLE type=
"text/css">
10 .ttn {text-transform: none;}
11 .cap {text-transform: capitalize;}
12 .upp {text-transform: uppercase;}
13 .low {text-transform: lowercase;}
18 <BODY><P>The style declarations which apply to the text below are:
</P>
19 <PRE>.ttn {text-transform: none;}
20 .cap {text-transform: capitalize;}
21 .upp {text-transform: uppercase;}
22 .low {text-transform: lowercase;}
26 <P CLASS=ttn
>This page tests the 'text-transform' property of CSS1.
27 This paragraph has no text transformation and should appear normal.
29 <P CLASS=cap
>This paragraph is capitalized and the first letter in each word should therefore appear in uppercase. Words that are in uppercase in the source (e.g. USA) should remain so. There should be a capital letter after a non-breaking
space (
&nbsp;). Both those characters appear in the previous sentence.
31 <P>Words with inline elements inside them should only capitalize the first letter of the word. Therefore, the last word in this sentence should have one, and only one, capital
<SPAN CLASS=cap
>le
<SPAN>tt
</SPAN>er
</SPAN>.
33 <P CLASS=upp
>This paragraph is uppercased and small characters in the source (e.g. a and
å) should therefore appear in uppercase. In the last sentence, however,
<SPAN class=
"ttn">the last eight words should not be uppercase
</SPAN>.
35 <P CLASS=low
>This paragraph is lowercased and capital characters in the source (e.g. A and
Å) should therefore appear in lowercase.
39 <TABLE border
cellspacing=
"0" cellpadding=
"3" class=
"tabletest">
41 <TD colspan=
"2" bgcolor=
"silver"><STRONG>TABLE Testing Section
</STRONG></TD>
44 <TD bgcolor=
"silver"> </TD>
45 <TD><P CLASS=ttn
>This page tests the 'text-transform' property of CSS1.
46 This paragraph has no text transformation and should appear normal.
48 <P CLASS=cap
>This paragraph is capitalized and the first letter in each word should therefore appear in uppercase. Words that are in uppercase in the source (e.g. USA) should remain so. There should be a capital letter after a non-breaking
space (
&nbsp;). Both those characters appear in the previous sentence.
50 <P>Words with inline elements inside them should only capitalize the first letter of the word. Therefore, the last word in this sentence should have one, and only one, capital
<SPAN CLASS=cap
>le
<SPAN>tt
</SPAN>er
</SPAN>.
52 <P CLASS=upp
>This paragraph is uppercased and small characters in the source (e.g. a and
å) should therefore appear in uppercase. In the last sentence, however,
<SPAN class=
"ttn">the last eight words should not be uppercase
</SPAN>.
54 <P CLASS=low
>This paragraph is lowercased and capital characters in the source (e.g. A and
Å) should therefore appear in lowercase.
56 </TD></TR></TABLE></BODY>