In Chrome DevTools I noticed one thing, which I cannot understand. If I set only width and height to a body in CSS - then div doesn`t inherited any property.
body {
width: 100%;
height: 100%;
}
<body>
<div>
text
</div>
</body>
In this case in DevTools we can see - div doesn`t have any inherited properties from body. But if I add font-size to a body - div inherited font-size, width and height property.
Help me to understand, what is going on?