gecko-dev/layout/base/tests/bug1132768-1.html

18 строки
727 B
HTML

<!DOCTYPE html>
<html class="reftest-wait">
<title>Can drag-select non-editable content inside editable content</title>
<script src="selection-utils.js"></script>
<script src="/tests/SimpleTest/SimpleTest.js"></script>
<script src="/tests/SimpleTest/EventUtils.js"></script>
<div contenteditable spellcheck="false"
style="outline: none">foo<span contenteditable=false>bar</span>baz</div>
<script>
SimpleTest.waitForFocus(function() {
const span = document.querySelector("span");
const rect = span.getBoundingClientRect();
dragSelectPoints(span, 0, rect.height / 2, rect.width, rect.height / 2);
setTimeout(() => document.documentElement.removeAttribute("class"));
});
</script>
</html>