writing-mode: vertical-lr; }

</style>

<p>The test passes if it has the same output than the reference.</p>

<div class="grid" style="grid-template-rows: 30px;">
  <div class="item">XXX</div>
  <div class="test firstRow"></div>
</div>

<div class="grid" style="grid-template-rows: 30px 0px;">
  <div class="item">XXX</div>
  <div class="spanningItem">XXX</div>
  <div class="test firstRow"></div>
  <div class="test secondRow"></div>
</div>

<div class="grid" style="grid-template-rows: 40px;">
  <div class="it