These tests show improvements to flip collision resolution.
The first 6 show how flip reacts when the menu is wider than the element it should fit in.
It is flipped only if the resulting position will place less of the element outside of the "within" element.

The final 3 show similar behavior but for height.