concept
Pointer hit testing — CSS reference
Hit testing chooses a target at a viewport coordinate. A transparent overlay can still intercept clicks unless excluded from targeting. The overlay in this example lets the underlying button receive pointer input.
Formal Syntax & Structure
css syntaxcss
pointer-events: none;Working Example
Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>Pointer hit testing</title><style>body{margin:0}#a{padding:8px;background:rgb(232,237,241);color:rgb(0,0,0);box-sizing:border-box}#a{pointer-events:none}</style><body><button id="b" style="position:absolute;left:10px;top:10px;width:100px;height:40px">Open</button><div id="a" style="position:absolute;left:10px;top:10px;width:100px;height:40px">Overlay</div></body></html>