text-transform-capitalize-032.xht (1168B)
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 - capitalize - basic cases</title> 6 <link rel="author" title="Satoshi Umehara" href="mailto:umehara@est.co.jp" /> 7 <link rel="help" title="CSS Text Level 3: 3.1. Transforming Text: the ‘text-transform’ property" href="http://www.w3.org/TR/css-text-3/#text-transform" /> 8 <link rel="match" href="reference/text-transform-capitalize-032-ref.xht"/> 9 <meta name="assert" content="The UA should put all words in titlecase when text-transform is set to capitalize." /> 10 <style type="text/css"> 11 <![CDATA[ 12 .test span { 13 text-transform: capitalize; 14 } 15 /* the CSS below is not part of the test */ 16 span { 17 color: Blue; 18 } 19 ]]> 20 </style> 21 </head> 22 <body> 23 <p> 24 Test passes if the first sentence matches the second one. 25 </p> 26 <div class="test"> 27 <span>All words should be put in titlecase.</span> 28 </div> 29 <div> 30 <span>All Words Should Be Put In Titlecase.</span> 31 </div> 32 </body> 33 </html>