text-transform-001.xht (1271B)
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 2 <html xmlns="http://www.w3.org/1999/xhtml"> 3 <head> 4 <title>CSS Test: Text-transform set to 'capitalize'</title> 5 <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> 6 <link rel="help" href="http://www.w3.org/TR/CSS21/text.html#propdef-text-transform" /> 7 <link rel="help" href="http://www.w3.org/TR/CSS21/text.html#caps-prop" /> 8 <link rel="help" href="https://drafts.csswg.org/css-text-3/#text-transform-property"/> 9 <link rel="match" href="text-transform-001-ref.xht"/> 10 <meta name="assert" content="The 'text-transform' property set to 'capitalize' on an element makes the first character of every word uppercase." /> 11 <style type="text/css"> 12 #test 13 { 14 text-transform: capitalize; 15 } 16 </style> 17 </head> 18 <body> 19 <p>Test passes if the two lines of "Filler Text" below have the same (upper/lower) case for each letter.</p> 20 <div>Filler Text Filler Text FILLER TEXT FILLER TEXT FiLlEr TExT</div> 21 <div id="test">filler text Filler Text FILLER TEXT fILLER tEXT FiLlEr tExT</div> 22 </body> 23 </html>