Re: [csswg-drafts] `::backdrop` does not prevent clicks below when `pointer-events: none;` applied. Should it? (#13100)

Before dialog, making a fixed position modal, with a mask behind (typically also fixed but with no inset) as the previous sibling element to the faux dialog, you would apply ‘pointer-events: none’ to create a click mask, preventing clicks on the item below. 

I’m not hung up on how the same functionality is achieved with ::backdrop but feel it should be possible for the backdrop to prevent clicks. Backdrop is typically used to visually obfuscate content below and I think it’s reasonable that users/authors might expect that to prevent clicks there too. Do you agree?

-- 
GitHub Notification of comment by benfrain
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/13100#issuecomment-3524270638 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Wednesday, 12 November 2025 23:09:32 UTC