1 <!DOCTYPE html>
2 <html><head>
3 <meta charset="utf-8">
4 <title>CSS Test: using 'first' property of named strings</title>
5 <link href="mailto:dauwhe@gmail.com" rel="author" title="Dave Cramer">
6 <link href="http://www.w3.org/TR/css-gcpm-3/#string-first" rel="help">
7 <meta content="paged" name="flags">
8 <meta content="Test checks that the default value of the string property is first, so that the first instance of a named string on the page is used." name="assert">
9 <style>
10 @page {
11 @top-center {
12 content: string(section);
13 }
14 }
15
16 h2 {
17 string-set: section content();
18
19 }
20
21
22
23 </style>
24 </head>
25 <body>
26 <p>Test passes if “Section One” is in the running head at the top of the page.</p>
27 <h2 id="s1">Section One</h2>
28 <h2 id="s2">Section Two</h2>
29 <h2 id="s3">Section Three</h2>
30 <h2 id="s4">Section Four</h2>
31 <h2 id="s5">Section Five</h2>
32 <h2 id="s6">Section Six</h2>
33
34
35 </body></html>