bidi-display-block-001

bidi and inline with display:block

WeasyPrint

This browser

Assertion
An inline with display:block should be treated as a paragraph in the bidi algorithm

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: bidi and inline with display: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/visuren.html#direction">
 7     <meta name="assert" content="An inline with display:block should be treated as a paragraph in the bidi algorithm">
 8     <style type="text/css">
 9      div {direction:rtl;}
10      span {display:block;}
11     </style>
12   </head>
13   
14   <body>
15     <p>These lines should be identical:</p>
16     <div>
17       <span>
18 	a (1) اسأل TEXT
19       </span>
20       <span>
21 	a (1) اسأل TEXT
22       </span>
23     </div>
24   </body>
25 </html>