ng-visual.css";

grid {
  display: grid;
  gap: 1rem 1rem;
  grid-template-columns: 1ch 1ch;
  grid-template-rows: repeat(4,100px);
  border: 1px solid;
  padding: 0 1px 0 2px;
  vertical-align: top;
}

item {
    background-color: blue;
    width: auto;
}

</style>

<body>

<grid title="Ensure a width is applied in a column masonry layout when the item's width is auto">
  <item style="grid-column: 1;">1</item>
  <item style="grid-column: 2;">5</item>
  <item style="grid-column: 1;">2</item>
  <item style="