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 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.
pointer-events governs hit testing, not paint and not the keyboard
document.elementsFromPoint stack in DevTools). Give the decorative overlay pointer-events: none so clicks go through, and auto again on any child that must stay clickable.pointer-events: none disables an element completely It only turns off the pointer; Tab and Enter still work, and screen readers still treat it as active. Use the disabled attribute (buttons, inputs) or inert (a region of the page).pointer-events: none that element is never hit, so cursor: not-allowed on it never shows. Put the cursor on a wrapper, or use disabled with :disabled { cursor: not-allowed }..glow { pointer-events: none }, then click the bell The sheet is still visible, but the click goes through to the bell. The stack marks .glow "skipped".none, then give .close { pointer-events: auto } × passes through too because none is inherited. auto on .close brings it back..buy { pointer-events: none }, then Tab to the bell and press Enter The click still happens (e.detail 0): pointer-events only turns off the mouse.