tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

string-set-002.html (722B)


      1 <!DOCTYPE html>
      2 <html>
      3 <head>
      4 <meta charset="utf-8">
      5 <title>CSS Test: GCPM String-set with content()</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 
      9 <meta name="flags" content="paged">
     10 <meta name="assert" content="Test checks that a string can be set to the text value of an element, using the default content() syntax">
     11 <style>
     12  @page {
     13   @top-center {
     14   content: string(title);
     15   }
     16  }
     17 
     18 h1 {
     19   string-set: title content();
     20 }
     21 </style>
     22 </head>
     23 <body>
     24 <h1>Chapter Title</h1>
     25 <p>Test passes if “Chapter Title” appears in the running head at the top of the page.</p>
     26 </body>
     27 </html>