<!DOCTYPE HTML>
<!--
     Any copyright is dedicated to the Public Domain.
     http://creativecommons.org/publicdomain/zero/1.0/
-->
<html>
<head>
<meta charset="utf-8">
<title>CSS Grid Test: Subgridded item sizing with mixed writing modes</title>
<link rel="author" title="Ethan Jimenez" href="mailto:ethavar@microsoft.com">
<link rel="help" href="https://drafts.csswg.org/css-grid-2">
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css">
<link rel="match" href="orthogonal-writing-mode-006-ref.html">
<style>
body {
  background: white;
  color: black;
  display: grid;
  font: 20px/1 Ahem;
  place-items: start;
  padding: 0;
  margin: 0;
}
.grid {
  background: cyan;
  display: grid;
  padding: 5px;
}
.grid > .grid {
  background: pink;
  grid-template: subgrid / subgrid;
}
.h { writing-mode: horizontal-tb; }
.v { writing-mode: vertical-rl; }
</style>
</head>
<body>
  <div class="grid h">
    <div class="grid h">
      <div class="h">1234</div>
    </div>
  </div>
  <div class="grid h">
    <div class="grid h">
      <div class="v">1234</div>
    </div>
  </div>
  <div class="grid h">
    <div class="grid v">
      <div class="h">1234</div>
    </div>
  </div>
  <div class="grid h">
    <div class="grid v">
      <div class="v">1234</div>
    </div>
  </div>
  <div class="grid v">
    <div class="grid h">
      <div class="h">1234</div>
    </div>
  </div>
  <div class="grid v">
    <div class="grid h">
      <div class="v">1234</div>
    </div>
  </div>
  <div class="grid v">
    <div class="grid v">
      <div class="h">1234</div>
    </div>
  </div>
  <div class="grid v">
    <div class="grid v">
      <div class="v">1234</div>
    </div>
  </div>
</body>
</html>
