- From: Philipp Rudloff via GitHub <sysbot+gh@w3.org>
- Date: Thu, 21 Nov 2024 12:08:03 +0000
- To: public-css-archive@w3.org
This is a admittedly somewhat niche requirement I ran into quite a few times: Keep all pointer events but disable scroll. This appeared in the context of sort of floating cards on top of scroll interactive content. The cards need to remain interactive so they can't have `pointer-events: none` which would let the scroll event through. However, this also poses the immediate question of what happens when such an element itself is scrollable. Then, you'd need to have a mechanism that only applies when the element doesn't even fire that event itself. In terms of API shape, a simple keyword wouldn't cut it. One would need a sort of filtering mechanism in both directions: - `pointer-events: allow(scroll, click, ...)` - `pointer-events: deny(scroll, click, ...)` -- GitHub Notification of comment by kleinfreund Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/6280#issuecomment-2490963833 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Thursday, 21 November 2024 12:08:04 UTC