text-overflow-scroll-vertical-lr-rtl-001.html (1445B)
1 <!DOCTYPE html> 2 <html class="reftest-wait"> 3 <meta charset="utf-8"> 4 <title>CSS Overflow: text-overflow: ellipsis and scrolling vertical-lr 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-vertical-lr-rtl-001-ref.html"> 8 <meta name="flags" content="should"> 9 <meta name="assert" content="If you scroll an element with 'text-overflow: ellipsis', the ellipsis should move to the new position. This should work in vertical-lr writing mode and RTL too."> 10 <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" /> 11 <style> 12 div { 13 display: inline-block; 14 writing-mode: vertical-lr; 15 font: 100px/1 Ahem; 16 white-space: pre; 17 height: 400px; 18 overflow: hidden; 19 text-overflow: ellipsis; 20 direction: rtl; 21 } 22 </style> 23 24 <p>The test passes if it matches the reference.</p> 25 26 <div id="test1">ppp pp p</div> 27 <div id="test2">ppp pp p</div> 28 <div id="test3"><span style="padding-inline-start: 400px;">ppp pp p</span></div> 29 <div id="test4"><span style="padding-inline-start: 600px;">ppp pp p</span></div> 30 31 <script> 32 requestAnimationFrame(() => requestAnimationFrame(() => { 33 test1.scrollTop = -200; 34 test2.scrollTop = -400; 35 test3.scrollTop = -200; 36 test4.scrollTop = -1000; 37 document.documentElement.className = ""; 38 })); 39 </script>