er, padding and scrollbar.">
<style>
.grid {
  display: inline-grid;
  border: solid 5px black;
  grid: 100px / 150px;
  margin: 10px;
  vertical-align: top;
}

.item {
  overflow: scroll;
  border: solid magenta;
  border-width: 12px 9px 6px 3px;
  margin: 1px 2px 3px 4px;
  padding: 5px 15px 10px 20px;
  background: cyan;
}

.subitem {
  width: 100%;
  height: 100%;
  background: yellow;
}

.horizontalTB { writing-mode: horizontal-tb; }
.verticalLR { writing-mode: vertical-lr; }
.verticalRL {  writing-mod