1 <!DOCTYPE html>
2 <html><head>
3 <meta charset="utf-8">
4 <title>CSS Test: GCPM string-set on element with display: none</title>
5 <link href="mailto:dauwhe@gmail.com" rel="author" title="Dave Cramer">
6 <link href="http://www.w3.org/TR/css-gcpm-3/#setting-named-strings-the-string-set-pro" rel="help">
7 <!--WD of this spec is out of date; referencing the ED--><meta content="paged" name="flags">
8 <meta content="Test checks that a string can be set to the value of an element even if display is set to none" name="assert">
9 <style>
10 @page {
11 @top-center {
12 content: string(title);
13 }
14
15 }
16
17 h1 {
18 string-set: title content();
19 display: none;
20 }
21
22
23
24 </style>
25 </head>
26 <body>
27 <h1>Chapter Title</h1>
28 <p>Test passes if “Chapter Title” appears in the running head.</p>
29
30
31 </body></html>