tor-browser

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

page-rule-specificity-001-print.html (794B)


      1 <!DOCTYPE html>
      2 <html>
      3  <meta charset="utf-8">
      4  <title>CSS Paged Media: @page without selector provides defaults</title>
      5  <link rel="author" title="Jonathan Watt" href="mailto:jwatt@jwatt.org"/>
      6  <link rel="help" href="https://drafts.csswg.org/css-page/#cascading-and-page-context"/>
      7  <meta name="assert" content="@page with a selector should not apply to non-matched pages">
      8  <link rel="match" href="page-rule-specificity-print-landscape-ref.html"/>
      9  <meta name="reftest-pages" content="2">
     10  <style>
     11 
     12 /* WPT Print Reftest default size is 5x3in - this should only change that for the first page */
     13 @page :first {
     14  size: portrait;
     15 }
     16 div:first-of-type {
     17  break-after: page;
     18 }
     19 body {
     20  margin: 0;
     21 }
     22 
     23  </style>
     24  <body>
     25    <div>Portrait</div>
     26    <div>Landscape</div>
     27  </body>
     28 </html>