Files
tubestation/layout/base/tests/caret-empty-contenteditable-overflow-click.html
Emilio Cobos Álvarez 9960c10b9e Bug 1959780 - Add a missing editing host check in GetRangeForFrame. r=masayuki
This is the low risk fix, but I'm not sure I understand what this code
is doing / why are we not just returning the "inner" range for all
frames, including inlines.

Differential Revision: https://phabricator.services.mozilla.com/D245228
2025-04-13 07:32:35 +00:00

24 lines
506 B
HTML

<!doctype html>
<html class="reftest-wait">
<script src="/tests/SimpleTest/SimpleTest.js"></script>
<script src="/tests/SimpleTest/EventUtils.js"></script>
<style>
div {
overflow: hidden;
border: 1px solid;
width: 20em;
}
</style>
<div id="host" contenteditable></div>
<script>
onload = () => {
host.focus();
requestAnimationFrame(() => {
requestAnimationFrame(() => {
synthesizeMouseAtCenter(host, {});
document.documentElement.className = "";
});
})
}
</script>