Bug 217515

Summary: DataTransfer.setImage is not overriding the default dnd avatar if they are children of draggable element
Product: WebKit Reporter: Vishnu <vissu_nbkr>
Component: ImagesAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: webkit-bug-importer, wenson_hsieh
Priority: P2 Keywords: InRadar
Version: Safari 13   
Hardware: Mac   
OS: macOS 10.15   

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>