On Mozilla this pen works. But when I switch to Chrome it breaks.
It's just me or something is wrong with browsers?
.container {
height: 500px;
width: 500px;
background-color: beige;
display: grid;
grid-template-rows: 1fr;
grid-template-columns: 1fr;
}
.container h2 {
position: absolute;
justify-self: center;
align-self: center;
grid-row: 1;
grid-column: 1;
}
<div class="container">
<h2>TEXT</h2>
</div>