bidi-box-model-027.xht (1368B)
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> 2 <html xmlns="http://www.w3.org/1999/xhtml"> 3 <head> 4 <title>CSS Test: bidirection box model - margin-right on embed block</title> 5 <link rel="author" title="Eira Monstad, Opera Software ASA" href="mailto:public-testsuites@opera.com"/> 6 <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-03-12 --> 7 <link rel="help" href="http://www.w3.org/TR/CSS21/box.html#bidi-box-model" /> 8 <link rel="match" href="bidi-box-model-025-ref.xht" /> 9 10 <meta name="flags" content="ahem" /> 11 <meta name="assert" content="Side margins should be unaffected by directionality"/> 12 <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" /> 13 <style type="text/css"><![CDATA[ 14 div { 15 background: navy; 16 color: orange; 17 font: 1.25em/1 Ahem; 18 text-align: right; 19 margin-bottom: 1em; 20 margin-right: 5em; 21 } 22 23 .rtol { 24 direction: rtl; 25 unicode-bidi: embed; 26 } 27 28 p {text-align: left;} 29 ]]></style> 30 </head> 31 32 <body> 33 <p>Test passes if the 2 wide bicolored stripes are <strong>identical</strong> with identical right margin.</p> 34 <div> 35 Text 36 </div> 37 <div class="rtol"> 38 Text 39 </div> 40 </body> 41 </html>