text-transform-bicameral-002

text-transform - Latin1 lowercase

WeasyPrint

This browser

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

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 lowercase</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=2">
 9 <meta name="flags" content="">
10 <meta name="assert" content="The UA will lowercase all letters in the Latin 1 set when text-transform is set to lowercase.">
11 <style type="text/css">
12 .test span { text-transform: lowercase; }
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 left-hand character in each pair matches the right-hand one.</p>
26 
27 
28 <div class="test">
29 <div><span>A</span> a</div>
30 <div><span>B</span> b</div>
31 <div><span>C</span> c</div>
32 <div><span>D</span> d</div>
33 <div><span>E</span> e</div>
34 <div><span>F</span> f</div>
35 <div><span>G</span> g</div>
36 <div><span>H</span> h</div>
37 <div><span>I</span> i</div>
38 <div><span>J</span> j</div>
39 <div><span>K</span> k</div>
40 <div><span>L</span> l</div>
41 <div><span>M</span> m</div>
42 <div><span>N</span> n</div>
43 <div><span>O</span> o</div>
44 <div><span>P</span> p</div>
45 <div><span>Q</span> q</div>
46 <div><span>R</span> r</div>
47 <div><span>S</span> s</div>
48 <div><span>T</span> t</div>
49 <div><span>U</span> u</div>
50 <div><span>V</span> v</div>
51 <div><span>W</span> w</div>
52 <div><span>X</span> x</div>
53 <div><span>Y</span> y</div>
54 <div><span>Z</span> z</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>