Re: [csswg-drafts] Proposal for a user interaction :drag pseudo-class (#11584)

> when an element is being actively dragged by the user

Currently, we have a concept of draggable elements, that this doesn't seem to be related to: https://developer.mozilla.org/en-US/docs/Web/API/HTML_Drag_and_Drop_API. For this use case it sounds like dragging is synonymous with scrolling?

> For example, when creating a horizontally scrollable menu or container, it’s common to want to display overflow content only when the user is actively dragging the element

We determine which scroller to target when the user starts trying to scroll. If you update the overflow after this, you won't be able to change what is being scrolled.

I also worry that this is going to create inaccessible content, e.g. can keyboard users not scroll the content?

Since this seems to be about scrolling, are you proposing that dragging means finger movements or touchpads or wheel events?

Is the core problem that you want to have overlay style scrollbars that are not visible until scrolling?

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


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

Received on Wednesday, 3 December 2025 17:09:51 UTC