eol-spaces-bidi-003.html (1105B)
1 <!doctype html> 2 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 3 <title>CSS Text 3 test: trailing collapsible spaces and bidi</title> 4 <link rel="author" title="Jose Dapena Paz" href="mailto:jdapena@igalia.com"> 5 <link rel="help" href="https://drafts.csswg.org/css-text-3/#valdef-white-space-pre-wrap"> 6 <link rel="help" href="https://drafts.csswg.org/css-text-3/#white-space-phase-2"> 7 <link rel="match" href="reference/eol-spaces-bidi-003-ref.html"> 8 <link rel="match" href="reference/eol-spaces-bidi-alt-003-ref.html"> 9 <meta name="assert" content="Hanging space between OP and D should take paragraph direction and show in the end of the line (blue box to the left)"> 10 <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" /> 11 12 <style> 13 div { 14 direction: rtl; 15 16 font: 20px/1 Ahem; 17 margin-left: 20px; 18 background: green; 19 20 width: 4ch; 21 white-space: pre-wrap; 22 } 23 span { 24 background: blue; 25 } 26 </style> 27 <p>Test passes if a blue box (the white space) is visible at the left start in first line.</p> 28 <div>ب <span>OP</span><span> </span>D</div>