: ellipsis', the ellipsis should move to the new position. This should work in vertical-lr writing mode and RTL too.">
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
<style>
  div {
    display: inline-block;
    writing-mode: vertical-lr;
    font: 100px/1 Ahem;
    white-space: pre;
    height: 400px;
    overflow: hidden;
    text-overflow: ellipsis;
    direction: rtl;
  }
</style>

<p>The test passes if it matches the reference.</p>

<div id="test1">ppp pp p</div>
<div id="test2">ppp 