It's not clear what the expectation is or why it is believed to be a bug. There is no guarantee that flex-direction:row means parents wholly contain children. There are many other variables that can affect placement and layout and there are a lot of variables in play in the provided repro project. Please clarify what the issue is and try to simplify the repro to the elements and styles necessary to repro the issue.