"/resources/testdriver-actions.js"></script>
<script src='../../resources/shadow-dom.js'></script>
<script src="../../resources/focus-utils.js"></script>

<style>
.wrapper {
  display: grid;
  grid-template-columns: repeat(3, 150px);
    grid-template-areas: "d b b"
                          "c c a";
  reading-flow: grid-rows;
  writing-mode: vertical-lr;
}

.a { grid-area: a; }
.b { grid-area: b; }
.c { grid-area: c; }
.d { grid-area: d; }

</style>

<div class="test-case" data-expect="d1,b1,c1,a1"
      d