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