 0 0 0 0;
}

div > div {
  display: grid;
  grid-column: 2 / span 3;
  grid: auto / subgrid;
  border: 1px solid;
  background: grey;
}

n {
  grid-row: 1;
  counter-increment: n;
}
n::before { content: counter(n, decimal); }

x {
  background: silver;
}

.rtl { direction:rtl; }
.ltr { direction:ltr; }

  </style>
</head>
<body>

<div class="grid">
  <n></n><n></n><n></n><n></n><n></n><n></n><n></n><n></n><n></n><n></n>
    <div class="rtl" style="grid-template-columns: subgrid; padding: 0 0 0 10px;">
     