string-set-010.html (777B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <meta charset="utf-8"> 5 <title>CSS Test: GCPM string-set on element with display: none</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 <!--WD of this spec is out of date; referencing the ED--><meta name="flags" content="paged"> 9 <meta name="assert" content="Test checks that a string can be set to the value of an element even if display is set to none"> 10 <style> 11 @page { 12 @top-center { 13 content: string(title); 14 } 15 16 } 17 18 h1 { 19 string-set: title content(); 20 display: none; 21 } 22 23 24 25 </style> 26 </head> 27 <body> 28 <h1>Chapter Title</h1> 29 <p>Test passes if “Chapter Title” appears in the running head.</p> 30 </body> 31 </html>