page-rule-specificity-003-print.html (759B)
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 rule without a selector list should apply to pages not matched by rules with selectors"> 8 <link rel="match" href="page-rule-specificity-print-portrait-ref.html"/> 9 <meta name="reftest-pages" content="2"> 10 <style> 11 12 @page :first { 13 size: landscape; 14 } 15 @page { 16 size: portrait; 17 } 18 div:first-of-type { 19 break-after: page; 20 } 21 body { 22 margin: 0; 23 } 24 25 </style> 26 <body> 27 <div>Landscape</div> 28 <div>Portrait</div> 29 </body> 30 </html>