text-overflow-scroll-rtl-001.html (1313B)
1 <!DOCTYPE html> 2 <html class="reftest-wait"> 3 <meta charset="utf-8"> 4 <title>CSS Overflow: text-overflow: ellipsis and scrolling RTL</title> 5 <link rel="author" title="Manuel Rego Casasnovas" href="mailto:rego@igalia.com"> 6 <link rel="help" href="https://drafts.csswg.org/css-overflow-4/#ellipsis-scrolling"> 7 <link rel="match" href="reference/text-overflow-scroll-rtl-001-ref.html"> 8 <meta name="flags" content="should"> 9 <meta name="assert" content="If you scroll an element with 'text-overflow: ellipsis' in RTL, the ellipsis should move to the new position."> 10 <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" /> 11 <style> 12 div { 13 font: 100px/1 Ahem; 14 white-space: pre; 15 width: 400px; 16 overflow: hidden; 17 text-overflow: ellipsis; 18 direction: rtl; 19 } 20 </style> 21 22 <p>The test passes if it matches the reference.</p> 23 24 <div id="test1">ppp pp p</div> 25 <div id="test2">ppp pp p</div> 26 <div id="test3"><span style="padding-inline-start: 400px;">ppp pp p</span></div> 27 <div id="test4"><span style="padding-inline-start: 600px;">ppp pp p</span></div> 28 29 <script> 30 requestAnimationFrame(() => requestAnimationFrame(() => { 31 test1.scrollLeft = -200; 32 test2.scrollLeft = -400; 33 test3.scrollLeft = -200; 34 test4.scrollLeft = -1000; 35 document.documentElement.className = ""; 36 })); 37 </script>