text-transform-bicameral-001

text-transform - Latin1 uppercase

WeasyPrint

This browser

Assertion
The UA will uppercase all letters in the Latin 1 set when text-transform is set to uppercase.

Source

 1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
 2 <html>
 3 <head>
 4 <title>CSS Test: text-transform - Latin1 uppercase</title>
 5 <link rel="author" title="Richard Ishida" href="http://rishida.net">
 6 <link rel="reviewer" title="Elika J. Etemad" href="http://fantasai.inkedblade.net/contact">
 7 <link rel="help" href="http://www.w3.org/TR/CSS21/text.html#caps-prop">
 8 <link rel="alternate" href="http://www.w3.org/International/tests/tests-html-css/tests-text-transform/generate?test=1">
 9 <meta name="flags" content="">
10 <meta name="assert" content="The UA will uppercase all letters in the Latin 1 set when text-transform is set to uppercase.">
11 <style type="text/css">
12 .test span { text-transform: uppercase; }
13 
14 /* the CSS below is not part of the test */
15 .test { font-size: 130%; line-height: 2.5; color: blue; }
16 .test div { white-space: nowrap; text-align: center;
17              width: 5em; display: inline-block; }</style>
18 <script type="text/javascript">
19 //
20 function setFontFamily () {var fontName = document.getElementById( 'fontName' ).value;	var divs = document.getElementsByTagName('div');	var i = 0; var div;	while (i < divs.length) {	 	div = divs.item(i);		if (div.className == 'test') { 			div.style.fontFamily = fontName; 			}		i++;		}	}
21 //
22 </script>
23 </head>
24 <body>
25 <p class="instructions">Test passes if the right-hand character in each pair matches the left-hand one.</p>
26 
27 
28 <div class="test">
29 <div>A <span>a</span></div>
30 <div>B <span>b</span></div>
31 <div>C <span>c</span></div>
32 <div>D <span>d</span></div>
33 <div>E <span>e</span></div>
34 <div>F <span>f</span></div>
35 <div>G <span>g</span></div>
36 <div>H <span>h</span></div>
37 <div>I <span>i</span></div>
38 <div>J <span>j</span></div>
39 <div>K <span>k</span></div>
40 <div>L <span>l</span></div>
41 <div>M <span>m</span></div>
42 <div>N <span>n</span></div>
43 <div>O <span>o</span></div>
44 <div>P <span>p</span></div>
45 <div>Q <span>q</span></div>
46 <div>R <span>r</span></div>
47 <div>S <span>s</span></div>
48 <div>T <span>t</span></div>
49 <div>U <span>u</span></div>
50 <div>V <span>v</span></div>
51 <div>W <span>w</span></div>
52 <div>X <span>x</span></div>
53 <div>Y <span>y</span></div>
54 <div>Z <span>z</span></div>
55 <div>À <span>à</span></div>
56 <div>Á <span>á</span></div>
57 <div>Â <span>â</span></div>
58 <div>Ã <span>ã</span></div>
59 <div>Ä <span>ä</span></div>
60 <div>Å <span>å</span></div>
61 <div>Æ <span>æ</span></div>
62 <div>Ç <span>ç</span></div>
63 <div>È <span>è</span></div>
64 <div>É <span>é</span></div>
65 <div>Ê <span>ê</span></div>
66 <div>Ë <span>ë</span></div>
67 <div>Ì <span>ì</span></div>
68 <div>Í <span>í</span></div>
69 <div>Î <span>î</span></div>
70 <div>Ï <span>ï</span></div>
71 <div>Ð <span>ð</span></div>
72 <div>Ñ <span>ñ</span></div>
73 <div>Ò <span>ò</span></div>
74 <div>Ó <span>ó</span></div>
75 <div>Ô <span>ô</span></div>
76 <div>Õ <span>õ</span></div>
77 <div>Ö <span>ö</span></div>
78 <div>Ø <span>ø</span></div>
79 <div>Ù <span>ù</span></div>
80 <div>Ú <span>ú</span></div>
81 <div>Û <span>û</span></div>
82 <div>Ü <span>ü</span></div>
83 <div>Ý <span>ý</span></div>
84 <div>Þ <span>þ</span></div>
85 <div>Ÿ <span>ÿ</span></div>
86 </div>
87 
88 
89 <!--p class="notes">Notes: <br />The <a href='http://www.w3.org/TR/REC-CSS2/text.html#propdef-text-transform'>CSS2 specification</a> only requires that text-transform work for 'the Latin1 repertoire'. It is not clear what characters the term 'Latin1' covers. This test assumes that it means the Basic Latin and Latin-1 Supplement blocks of the Unicode Standard (equivalent to ISO-8859-1). There is one character in this set, ÿ, that only occurs in the lower-case form.</p-->
90 <p id="fontChange" style="display: none;" class="notes">If you are unable to see font glyphs for certain characters using the browsers default font you can apply a specific font by typing its name in the following box: <input class="css" name="fontName" id="fontName" value="" type="text"> <button class="notes" type="button" onclick="setFontFamily()">Apply</button></p><script type="text/javascript">if (document.getElementById) {document.getElementById('fontChange').style.display = 'block'}</script></body>
91 </html>