string-set-004.html (718B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <meta charset="utf-8"> 5 <title>CSS Test: GCPM String-set with content(first-letter)</title> 6 <link rel="author" title="Dave Cramer" href="mailto:dauwhe@gmail.com"> 7 <link rel="help" href="http://www.w3.org/TR/css-gcpm-3/#setting-named-strings-the-string-set-pro"> 8 9 <meta name="flags" content="paged"> 10 <meta name="assert" content="Test checks that a string can be set to the first letter of the text value of an element"> 11 <style> 12 @page { 13 @top-center { 14 content: string(title); 15 } 16 } 17 18 h1 { 19 string-set: title content(first-letter); 20 } 21 </style> 22 </head> 23 <body> 24 <h1>Chapter Title</h1> 25 <p>Test passes if āCā appears in the running head at the top of the page.</p> 26 </body> 27 </html>