0
The only difference here is parent, styles of subtree are completely the same.
Grid calculates the width of first element (section with green outline) correctly, but flex sets it to 0 and allows overflow (blue circle div). Playing with overflow or flex-shrink on section doesn't help.
Here is the...