string-set-007.html (744B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <meta charset="utf-8"> 5 <title>CSS Test: GCPM string-set with content(after)</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 a named string can be set to the content of the after pseudo-element"> 10 <style> 11 @page { 12 @top-center { 13 content: string(title); 14 } 15 } 16 17 h1 { 18 string-set: title content(after); 19 } 20 21 h1::after { 22 content: '-after'; 23 } 24 25 26 </style> 27 </head> 28 <body> 29 <h1>Chapter Title</h1> 30 <p>Test passes if “-after” appears in the running head at the top of the page.</p> 31 </body> 32 </html>