The following should be compatible with both approaches:
.masonry {
display: grid;
display: grid-lanes;
grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
grid-template-rows: masonry;
}
Firefox and browsers supporting the old syntax will ignore the `display: grid-lanes` as it doesn't recognize it and fall back to the grid+masonry.Browsers supporting the new syntax will override the `display: grid` with `display: grid-lanes` and ignore the `grid-template-rows: masonry` syntax.