mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-04 08:01:51 +00:00
19 lines
541 B
HTML
19 lines
541 B
HTML
<script src="../include.js"></script>
|
|
<style>
|
|
div {
|
|
font-size: 10px;
|
|
}
|
|
</style>
|
|
<div contenteditable="true">a<br><br><div id="b">b</div></div>
|
|
<script>
|
|
test(() => {
|
|
var bDiv = document.querySelector('div#b');
|
|
var bBounds = bDiv.getBoundingClientRect();
|
|
|
|
// Drag a selection from inside the #b div to just above it.
|
|
internals.mouseDown(bBounds.x + 2, bBounds.y + 5);
|
|
internals.movePointerTo(bBounds.x + 2, bBounds.y - 5);
|
|
|
|
println('PASS (did not crash)');
|
|
});
|
|
</script>
|