CSS - Using percentage based min-width on nested float elements does not work
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>percentage-min-float.html</title>
<style>
@page {
size: 420pt 420pt;
margin: 10pt;
}
html {
font-size: 8pt;
line-height: 10pt;
}
.left {
float:left;
clear: both;
min-width:50%;
background: lightblue;
padding: 5pt;
box-sizing: border-box;
}
.right {
float:right;
clear: both;
min-width:50%;
background: lightblue;
padding: 5pt;
box-sizing: border-box;
}
</style>
</head>
<body>
<div class="left">
<div class="left" style="background: red">
Test
</div>
</div>
<div class="right">
<div class="right" style="background: red">
Test
</div>
</div>
</body>
</html>