bidi-generated-content-002

content: with character forced bidi - lro

WeasyPrint

This browser

Assertion
A left-to-right override should be correctly applied when inserted through the content property

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: content: with character forced bidi - lro</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     <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#content">
 8     <meta name="flags" content="">
 9     <meta name="assert" content="A left-to-right override should be correctly applied when inserted through the content property">
10     <style type="text/css">
11       .force:before {
12       content: "\202D"
13       }
14     </style>
15   </head>
16 
17   <body>
18     <p>The two lines below should be identical:</p>
19     <p>ab c d</p>
20     <p>&#x202E;d c <span class="force">ab</span>&#x202C;</p>
21     
22   </body>
23 </html>