I'm trying to understand a code where the min-height of the body element is set to 100vh after previously defining the height of the html element as 100%. Why is there a need for this specific sequence?
body {
position: relative;
overflow: hidden;
min-height: 100vh;
}
It seems redundant to first set the html and body elements' heights to 100% and then specifically define the min-height as 100%. Wouldn't it be simpler to just use min-height: 100% for the body element from the start?