string-set-008.html (883B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <meta charset="utf-8"> 5 <title>CSS Test: GCPM string-set with multiple assignments</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 <meta name="flags" content="paged"> 9 <meta name="assert" content="Test checks that several named string can be set on a single element"> 10 <style> 11 @page { 12 @top-center { 13 content: string(center); 14 } 15 @top-left { 16 content: string(left); 17 } 18 @top-right {content: 19 string(right); 20 } 21 } 22 23 h1 { 24 string-set: left content(), right content(), center content(first-letter); 25 } 26 27 </style> 28 </head> 29 <body> 30 <h1>Chapter Title</h1> 31 <p>Test passes if “Chapter Title” appears in both the left and right running heads, and “C” appears in the center running head.</p> 32 </body> 33 </html>