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
24 lines
506 B
HTML
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>
|