2 #target { border: solid; -webkit-user-drag: element; width:
100px; height:
100px; }
3 #target:before { content:
"Drag this"; }
4 #target:-webkit-drag:before { color: blue; }
6 <div id=
"target"></div>
8 Test for
<i><a href=
"https://bugs.webkit.org/show_bug.cgi?id=47005">https://bugs.webkit.org/show_bug.cgi?id=
47005</a>
9 Null dereference when dragging an element with generated content
</i>.
12 Drag the box above. The text should become blue and the browser should not crash.
15 if (window
.testRunner
) {
16 testRunner
.dumpAsText();
17 eventSender
.mouseMoveTo(50, 50);
18 eventSender
.mouseDown();
19 eventSender
.mouseMoveTo(250, 250);
20 eventSender
.mouseUp();