I'm trying to use grids but found this weird behaviour in chrome. Check out this fiddle, try changing the height of the view port https://jsfiddle.net/16Ltw04d/4/
html, body {
height: 100%;
}
.grid {
outline: 1px solid red;
height: 100%;
display: grid;
grid-template-areas: 'main';
grid-template-rows: 1fr;
}
.main {
outline: 1px solid green;
grid-area: main;
margin: auto;
min-width: 200px;
min-height: 200px;
}
If you resize the window height then the inner div will jump up and down rapidly as it is redrawn in different locations. It works fine in firefox. Am I doing something incorrect or is this a bug with chrome?