bidi-generated-content-001

content: with character forced bidi - rlo

WeasyPrint

This browser

Assertion
A right-to-left override should be applied when u+202E is 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 - rlo</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/generate.html#content">
 7     <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#direction">
 8     <meta name="assert" content="A right-to-left override should be applied when u+202E is inserted through the content property">
 9     <style type="text/css">
10       .force:before {
11       content: "\202E"
12       }
13     </style>
14   </head>
15 
16   <body>
17     <p>The two lines below should be identical:</p>
18     <p>This sentence should be readable</p>
19     <p>This sentence should be <span class="force">elbadaer</span></p>
20   </body>
21 </html>