I am building an app where I noticed, that if I set the background on the html, set height: 100vh
and resize the viewport so that the content overflows vertically, then the background won't cover the overflowed content:
html {
height:100vh;
font-size:62.5%;
background:radial-gradient(at top, hsl(214, 47%, 23%), hsl(237, 49%, 15%));
background-repeat:no-repeat;
}
If I then set the height to min-height:100vh
. The overflowed content will still have the background, which is what I want. I would just like to know why this happens
html {
min-height:100vh;
font-size:62.5%;
background:radial-gradient(at top, hsl(214, 47%, 23%), hsl(237, 49%, 15%));
background-repeat:no-repeat;
}