tor-browser

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

string-set-011.html (1068B)


      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 <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 <!--
     11 Note this test exposes a known bug in PrinceXML 9.0 rev 2 (and all previous versions)
     12 -->
     13 <style>
     14  @page {
     15   @top-center {
     16   content: string(title);
     17   }
     18  }
     19 
     20 h1 {
     21 string-set: title content();
     22 display: none;
     23 }
     24 
     25 #d2 { page-break-before: always; }
     26 
     27 </style>
     28 </head>
     29 <body>
     30 <h1>Chapter One Title</h1>
     31 <p>Note: test has two pages</p>
     32 <p>Test passes if:</p>
     33 <ol>
     34 <li>
     35 “Chapter One Title” appears in the running head on page one.
     36 </li>
     37 <li>
     38 “Chapter Two Title” appears in the running head on page two.
     39 </li>
     40 </ol>
     41 
     42 <div id="d2">
     43 <h1>Chapter Two Title</h1>
     44 <p>Second Page</p>
     45 </div>
     46 </body>
     47 </html>