NEW 223595
Text within dragged element is dimmed on iPad
https://bugs.webkit.org/show_bug.cgi?id=223595
Summary Text within dragged element is dimmed on iPad
Devon Govett
Reported 2021-03-22 13:01:19 PDT
When dragging an element with draggable="true" on iPadOS, the text within the original element that was dragged is dimmed while it is being dragged, regardless of the CSS styles that are applied. This is problematic because custom CSS styles for the dragged element may be applied, and the browser should not override them. This only occurs on iPad, not in Safari on macOS or any other browser. Steps to reproduce: 1. Open https://codepen.io/devongovett/pen/bGgGEEw on an iPad 2. Drag the draggable element 3. Notice that the background of the original element gets darker and the text turns white. This is due to a class being applied in the dragstart event. Also notice that the text is dimmed, e.g. has some opacity. This is not in the CSS and is being applied by Safari somehow. 4. Open the same page on macOS and drag the element. Notice that the text is white and not dimmed, as expected. Also note that only the text is dimmed, not any other contents of the dragged element (e.g. the background, borders, or images/svg icons within). I searched the webkit source code to see if there was some default pseudo class being applied but didn't find anything.
Attachments
Radar WebKit Bug Importer
Comment 1 2021-03-29 13:02:14 PDT
Note You need to log in before you can comment on or make changes to this bug.