first-page-selectors-002

Page Selectors - First Page in RTL

WeasyPrint

This browser

Flags
paged
Assertion
The first page of a right-to-left document is a :left page.

Source

 1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
 2 <html dir="rtl">
 3  <head>
 4   <title>CSS Test: Page Selectors - First Page in RTL</title>
 5   <link rel="author" title="Elika J. Etemad" href="http://fantasai.inkedblade.net/contact">
 6   <link rel="help" href="http://www.w3.org/TR/CSS21/page.html#page-selectors">
 7   <meta name="flags" content="paged">
 8   <meta name="assert" content="The first page of a right-to-left document     is a :left page.">
 9   <style type="text/css">
10     @page:first {
11       margin-top: 50%;
12     }
13     @page:left {
14       margin-left: 50%;
15     }
16     @page:right {
17       margin: 0;
18     }
19     html {
20       margin: 0; padding: 0.2em;
21       border: solid blue;
22       border-width: thick thin thin thick;
23     }
24   </style>
25  </head>
26  <body>
27    <p class="import">When printed the top left corner of this box must be in
28      the exact center of this page.</p>
29  </body>
30 </html>