text-overflow-029.html (893B)
1 <!DOCTYPE html> 2 <html lang="en"> 3 <meta charset="utf-8"> 4 <title>CSS Basic User Interface Test: text-overflow and bidi interaction</title> 5 <link rel="author" title="Florian Rivoal" href="https://florian.rivoal.net/"> 6 <link rel="help" href="http://www.w3.org/TR/css-ui-3/#text-overflow"> 7 <link rel="help" href="http://www.w3.org/TR/css-ui-4/#text-overflow"> 8 <link rel="match" href="reference/text-overflow-029-ref.html"> 9 <meta name="assert" content="When there's content of mixed directionality, text-overflow ellides the characters at the physical end of the line."> 10 <style> 11 div { 12 font: 20px monospace; 13 width: 12.3ch; /* slightly more than 12ch because in some browsers (safari) the ellipsis is slightly large than other characters, even in monospace fonts. */ 14 text-overflow: ellipsis; 15 white-space: nowrap; 16 overflow: hidden; 17 } 18 </style> 19 20 <div>Test ‮deliafdessap‬</div>