CSS pointer-events Playground

Mrs. Yanti’s clear plastic sheet covers her stall’s bell: write pointer-events and the other declarations of each layer, then elementFromPoint answers where…

Why it matters

"Why can’t I click my button?" Often because something else (an overlay, a glow, a badge) sits on top and catches the click. pointer-events is also often used to "disable" elements, yet it only turns off the mouse: the keyboard still works.

The key idea

pointer-events governs hit testing, not paint and not the keyboard

Common mistakes

Try it in this playground