Here's an example of some HTML/CSS code:
<div style="display: flex; background-color: yellow;">
<div style="display: flex;background-color: lightblue;">i am a NESTED flexbox</div>
</div>
This results in https://i.sstatic.net/zrEK3.png
Notice how the inner flexbox (lightblue background color) does not fill the entire width, unlike the outer flexbox (yellow background).
Why is it that a nested flexbox container doesn't expand to match the full width of its parent?
Hint: I'm aware that adding flex: 1
can fix this issue, but what we're exploring here is the reason behind this behavior rather than how to resolve it.