Positioning Visibility Tests

Positioning with Zero Dimensions

Child with absolute positioning

Fixed Positioning with Zero Dimensions

Child with position: fixed

Static ancestor with fixed positioned descendant

underneath
on top

Static parent with a fixed child

off screen
child pointer-events: none

Parent with pointer-events: none

parent pointer-events: none
parent pointer-events: none
covering the element with pointer-events: none

Position Absolute Scenarios

position: absolute
no width, descendant position: absolute
parent position: absolute

Position Sticky Scenarios

Positioning Cousin Coverage

Target element
Covering cousin

Z-Index Coverage

Lower z-index element
Higher z-index element