tor-browser

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

using-strings-005.html (1055B)


      1 <!DOCTYPE html>
      2 <html>
      3 <head>
      4 <meta charset="utf-8">
      5 <title>CSS Test: using '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 if string is set to last, the last appearance of that element determines the content of the string">
     10 <style>
     11  @page {
     12   @top-center {
     13   content: string(title, last);
     14   }
     15  }
     16 
     17 h2 {
     18 string-set: title content();
     19 }
     20 
     21 #s2, #s4 { page-break-before: always; }
     22 
     23 </style>
     24 </head>
     25 <body>
     26 <p>Note: test has three pages. Test passes if:</p>
     27 <ol>
     28 <li>
     29 Running head on page one is “Section One”
     30 </li>
     31 <li>
     32 Running head on page two is “Section Three”
     33 </li>
     34 <li>
     35 Running head on page three is “Section Six”
     36 </li>
     37 </ol>
     38 <h2 id="s1">Section One</h2>
     39 <h2 id="s2">Section Two</h2>
     40 <h2 id="s3">Section Three</h2>
     41 <h2 id="s4">Section Four</h2>
     42 <h2 id="s5">Section Five</h2>
     43 <h2 id="s6">Section Six</h2>
     44 </body>
     45 </html>