bidi-box-model-026

bidirection box model - margin-right on normal block

WeasyPrint

This browser

Assertion
Side margins should be unaffected by directionality

Source

 1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
 2 <html>
 3   <head>
 4     <title>CSS Test: bidirection box model - margin-right on normal block</title>
 5     <link rel="author" title="Eira Monstad, Opera Software ASA" href="mailto:public-testsuites@opera.com">
 6     <link rel="help" href="http://www.w3.org/TR/CSS21/box.html#bidi-box-model">
 7     <meta name="flags" content="">
 8     <meta name="assert" content="Side margins should be unaffected by directionality">
 9     <style type="text/css">
10       div {
11       background: navy;
12       color: orange;
13       font: 1em/1 Ahem;
14       text-align: right;
15       margin-bottom: 1em;
16       margin-right: 5em;
17       }
18       
19       .rtol {
20       direction: rtl;
21       unicode-bidi: normal;
22       }
23     </style>
24   </head>
25   
26   <body>
27     <p>Two identical patterns with identical right margin:</p>
28     <div>
29       Text
30     </div>
31     <div class="rtol">
32       Text
33     </div>
34   </body>
35 </html>