Re: [csswg-drafts] [css-pseudo] Pseudo-element for dragged element (#1703)

> Concrete use cases for this are dragging the cards from one column into another in a tasks board like Trello, reordering a list of items like the tabs in a browser or a priority or todo list

Are the [drag events](https://developer.mozilla.org/en-US/docs/Web/API/HTML_Drag_and_Drop_API) not sufficient sufficient for these to adjust the necessary styles especially since you'll need to handle the dropping in the logic here too?

> dragging files from the file system into the UA, etc.
 
This one intrigues me and isn't covered by the above API set (that I'm aware of). Wouldn't make more sense to fill this gap in that API instead? That would then allow necessary styling assuming we ensure to spec that they should be styleable and how. I could then see a discussion around pseudo classes that map to said events. I'm personally not a fan of having the above pseudo-element since it seems like it's primarily targeted at a single usecase and could possibly be filled via a different API that aligns with the same behavior. I wouldn't strongly oppose it though either. 

Thanks for circling back on the usecases.

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


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

Received on Wednesday, 10 February 2021 05:25:40 UTC