mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 01:35:08 +02:00
This allows dragging elements on the page and dropping them onto other elements. This does not yet support dragging text. The test added here is manual; the WPT tests rely heavily on WebDriver actions.
41 lines
795 B
Plaintext
41 lines
795 B
Plaintext
Drag div:
|
|
dragenter
|
|
types: text/plain
|
|
dragover
|
|
types: text/plain
|
|
drop
|
|
types: text/plain
|
|
text/plain: 'hello'
|
|
text/uri-list: ''
|
|
source events: dragstart,dragend:copy
|
|
|
|
Drag non-draggable div:
|
|
drag started: false
|
|
|
|
Drag link:
|
|
dragstart
|
|
types: text/uri-list
|
|
dragenter
|
|
types: text/uri-list
|
|
dragover
|
|
types: text/uri-list
|
|
drop
|
|
types: text/uri-list
|
|
text/plain: ''
|
|
text/uri-list: 'https://example.com/'
|
|
|
|
Drag image:
|
|
dragstart
|
|
types: text/uri-list
|
|
dragenter
|
|
types: text/uri-list
|
|
dragover
|
|
types: text/uri-list
|
|
drop
|
|
types: text/uri-list
|
|
text/plain: ''
|
|
text/uri-list: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR4nGP4z8DwHwAFAAH/iZk9HQAAAABJRU5ErkJggg=='
|
|
|
|
Dragstart cancelled:
|
|
dragstart (cancelling)
|