text-transform-bicameral-002.xht (4333B)
1 <?xml version="1.0" encoding="utf-8"?> 2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 3 <html xmlns="http://www.w3.org/1999/xhtml"> 4 <head> 5 <title>CSS Test: text-transform - Latin1 lowercase</title> 6 <link rel='author' title='Richard Ishida' href='http://rishida.net' /> 7 <link rel='reviewer' title='Elika J. Etemad' href='http://fantasai.inkedblade.net/contact' /> 8 <link rel='help' href='http://www.w3.org/TR/CSS21/text.html#caps-prop' /> 9 <link rel="help" href="https://drafts.csswg.org/css-text-3/#text-transform-property"/> 10 <link rel="match" href="text-transform-bicameral-002-ref.xht"/> 11 <link rel='alternate' href='http://www.w3.org/International/tests/tests-html-css/tests-text-transform/generate?test=2' /> 12 <meta name="assert" content="The UA will lowercase all letters in the Latin 1 set when text-transform is set to lowercase." /> 13 <style type='text/css'> 14 .test span { text-transform: lowercase; } 15 16 /* the CSS below is not part of the test */ 17 .test { font-size: 130%; line-height: 2.5; color: blue; } 18 .test div { white-space: nowrap; text-align: center; 19 width: 5em; display: inline-block; }</style> 20 <script type='text/javascript'> 21 //<![CDATA[ 22 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++; } } 23 //]]> 24 </script> 25 </head> 26 <body> 27 <p class="instructions">Test passes if the left-hand character in each pair matches the right-hand one.</p> 28 29 30 <div class="test"> 31 <div><span>A</span> a</div> 32 <div><span>B</span> b</div> 33 <div><span>C</span> c</div> 34 <div><span>D</span> d</div> 35 <div><span>E</span> e</div> 36 <div><span>F</span> f</div> 37 <div><span>G</span> g</div> 38 <div><span>H</span> h</div> 39 <div><span>I</span> i</div> 40 <div><span>J</span> j</div> 41 <div><span>K</span> k</div> 42 <div><span>L</span> l</div> 43 <div><span>M</span> m</div> 44 <div><span>N</span> n</div> 45 <div><span>O</span> o</div> 46 <div><span>P</span> p</div> 47 <div><span>Q</span> q</div> 48 <div><span>R</span> r</div> 49 <div><span>S</span> s</div> 50 <div><span>T</span> t</div> 51 <div><span>U</span> u</div> 52 <div><span>V</span> v</div> 53 <div><span>W</span> w</div> 54 <div><span>X</span> x</div> 55 <div><span>Y</span> y</div> 56 <div><span>Z</span> z</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><span>Þ</span> þ</div> 87 <div><span>Ÿ</span> ÿ</div> 88 </div> 89 90 91 <!--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--> 92 <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> 93 </html>