Bug 217515 - DataTransfer.setImage is not overriding the default dnd avatar if they are children of draggable element
Summary: DataTransfer.setImage is not overriding the default dnd avatar if they are ch...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Images (show other bugs)
Version: Safari 13
Hardware: Mac macOS 10.15
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2020-10-09 06:00 PDT by Vishnu
Modified: 2020-10-09 18:13 PDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vishnu 2020-10-09 06:00:46 PDT
Take a div node which has draggable true is set.
And  the image tag or anchor tag is children of this div node
On drag if we try to override its dragimage it is not getting overridden.

This is not happening in Firefox or Chrome.
https://jsbin.com/lavohuyabi/1/edit?html,js,console,output
Comment 1 Alexey Proskuryakov 2020-10-09 18:13:28 PDT
Looks like the expected behavior is that when dragging the 150x150 image, the dragimage is the 200x200 one.

I can reproduce in Safari 14 too.
Comment 2 Radar WebKit Bug Importer 2020-10-09 18:13:40 PDT
<rdar://problem/70161775>