[Webkit-unassigned] [Bug 266025] Using setDragImage with html element containing transparency generates incorrect bitmap preview

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Dec 7 19:25:27 PST 2023


https://bugs.webkit.org/show_bug.cgi?id=266025

alexreardon at gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |alexreardon at gmail.com

--- Comment #1 from alexreardon at gmail.com ---
Reproduction example: https://codesandbox.io/s/safari-drag-preview-transparency-bug-2k58pt?file=/src/index.ts:775-889

The fix is also in the example, so you can uncomment it to fix the issue in Safari.

```
// Safari fix
const rect = dragPreview.getBoundingClientRect();
dragPreview.style.left = `-${rect.width - 0.0001}px`;
```

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20231208/24c2cf16/attachment.htm>


More information about the webkit-unassigned mailing list