In this example, a child element is absolutely-positioned inside of a parent element with perspective: 500px applied. Toggle the perspective property to understand how perspective creates a containing block.
perspective: 500px
Toggle perspective
perspective