Shape-Morphing Child

One element, no JavaScript: its own geometry is driven entirely by its container's aspect ratio. Drag the stage's corner: near a 1:1 ratio it rounds into a circle, the middle bands settle as a square, and past a 3:5 or 5:3 ratio it stretches into a rectangle.