• If an element's position is absolute, the containing block is the nearest positioned ancestor. In other words, the containing block must have a position of absolute, fixed, or relative. If no such element exists, the page is the containing block.
• If an element's position is fixed, the containing block is the browser viewport.
• If an element's position is relative, the containing block is the nearest block level
ancestor—in other words, its parent.