- From: Ben Frain via GitHub <noreply@w3.org>
- Date: Thu, 13 Nov 2025 09:54:32 +0000
- To: public-css-archive@w3.org
@Psychpsyo you are obviously correct. I'm befuddled as to why and how I have come to believe the opposite is true. Maybe I was thinking that scrolling under the modal was the same as clicking, don't know. But thanks for the simple examples and education.
Incidentally, any future travellers, if you do want to stop scrolling underneath, you can stick something like this in your CSS:
```css
html {
&:has(dialog:open) {
overflow: hidden;
}
}
```
--
GitHub Notification of comment by benfrain
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/13100#issuecomment-3526868282 using your GitHub account
--
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Thursday, 13 November 2025 09:54:33 UTC