<!DOCTYPE html>
<link rel="help" href="https://crbug.com/1081086" />
<meta name="assert" content="This test ensures that orthogonal flex and flex-items does not crash." />
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
<body style="width: 100px; height: 100px; font: 12px/1 Ahem;">
  <div style="display: flex; writing-mode: vertical-rl;">
    text text
    <div style="min-height: 0; writing-mode: horizontal-tb;">
      <span id="target"></span>
      text
    </div>
  </div>
</body>
<script>
document.body.offsetTop;
const target = document.getElementById('target');
target.parentElement.appendChild(target);
</script>
