tor-browser

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

using-strings-002.html (874B)


      1 <!DOCTYPE html>
      2 <html>
      3 <head>
      4 <meta charset="utf-8">
      5 <title>CSS Test: using the 'last' 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-last">
      8 <meta name="flags" content="paged">
      9 <meta name="assert" content="Test checks that the last instance of a named string is used, when the 'last' property is applied to the string.">
     10 <style>
     11  @page {
     12   @top-center {
     13   content: string(section, last);
     14   }
     15  }
     16 
     17 h2 {
     18 string-set: section content();
     19 }
     20 
     21 </style>
     22 </head>
     23 <body>
     24 <p>Test passes if the text "Section Six" is in the running head at the top of the page.</p>
     25 <h2 id="s1">Section One</h2>
     26 <h2 id="s2">Section Two</h2>
     27 <h2 id="s3">Section Three</h2>
     28 <h2 id="s4">Section Four</h2>
     29 <h2 id="s5">Section Five</h2>
     30 <h2 id="s6">Section Six</h2>
     31 </body>
     32 </html>