using-strings-004.html (998B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <meta charset="utf-8"> 5 <title>CSS Test: using 'first-except' property of named strings</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/#string-first-except"> 8 <meta name="flags" content="paged"> 9 <meta name="assert" content="Test checks that if string is set to first-except, it is omitted on the page where the string is set, but appears on subsequent pages"> 10 <style> 11 @page { 12 @top-center { 13 content: string(title, first-except); 14 } 15 } 16 17 h1 { 18 string-set: title content(); 19 } 20 21 #s2, #s3, #s4 { page-break-before: always; } 22 23 </style> 24 </head> 25 <body> 26 <h1>Chapter Title</h1> 27 <p>Test passes if the running head is omitted on page one, and is “Chapter Title” on all other pages.</p> 28 <h2 id="s1">Section One</h2> 29 <h2 id="s2">Section Two</h2> 30 <h2 id="s3">Section Three</h2> 31 <h2 id="s4">Section Four</h2> 32 <h2 id="s5">Section Five</h2> 33 <h2 id="s6">Section Six</h2> 34 </body> 35 </html>