bidi-002.xht (2197B)
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 2 <html xmlns="http://www.w3.org/1999/xhtml" lang="en"> 3 <head> 4 5 <title>CSS Test: RLO/PDF bidi reordering across closing inline element boundary + soft line break</title> 6 <meta name="assert" 7 content="Tests that RLO + closing inline element boundary + soft line break + PDF 8 reorders text, placing text correctly on each line 9 while also splitting inline and rendering borders and padding appropriately."/> 10 <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> 11 <link rel="reviewer" title="Elika J. Etemad" href="http://fantasai.inkedblade.net/contact"/> 12 <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/box/inline/bidi/002.html" type="text/html"/> 13 14 <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#bidi-box-model"/> 15 <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#bidi-control-codes"/> 16 <link rel="help" href="https://drafts.csswg.org/css-text-3/#white-space-processing"/> 17 18 <link rel="help" href="http://www.w3.org/TR/CSS21/box.html#bidi-box-model"/> 19 <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#direction"/> 20 <link rel="help" href="http://unicode.org/reports/tr9/"/> 21 22 <link rel="match" href="bidi-002-ref.xht" /> 23 24 <style type="text/css"> 25 div p { width: 17em; border: solid; margin: 1em; padding: 0.5em; background: #FFFFCC; color: black; } 26 .test { border: solid; padding: 0.4em 1em; line-height: 3em; color: navy; } 27 .control { line-height: 3em; color: navy; } 28 .control.a { border-style: solid none solid solid; padding: 0.4em 0 0.4em 1em; } 29 .control.b { border-style: solid solid solid none; padding: 0.4em 1em 0.4em 0; } 30 </style> 31 </head> 32 <body> 33 <p> The following two blocks should be identical, including overflow. (Force bidi: א) </p> 34 <div> 35 <p> 36 <span class="control a">AAABBBCCC</span>DDDEEEFFF<span class="control b">GGGHHHIII</span> 37 JJJKKKLLLMMMNNNOOO 38 </p> 39 <p> 40 <span class="test">AAABBBCCC‮IIIHHHGGG</span>FFFEEEDDD 41 LLLKKKJJJ‬MMMNNNOOO 42 </p> 43 </div> 44 </body> 45 </html>