Parece que esta es la única forma ¿es un bug?
Código HTML:
body{
background-color: silver;
display: table;
margin: 0;
height: 100vh;
width: 100%;
>*{
display: table-row;
}
main{
height: 100%;
width: 100%;
>div{ /*anidación de LESS*/
height: 100%;
width: 100%;
overflow: auto;
}
}
header,footer{
height: auto;
width: auto;
}
}
Código HTML:
<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="UTF-8"/>
<title>Document</title>
<link rel="stylesheet" href="style.css"/>
</head>
<body>
<header>header</header>
<main>
<div>
Texto<br>
Texto<br>
</div>
</main>
<footer>footer</footer>
</body>
</html>