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
15 lines
199 B
HTML
15 lines
199 B
HTML
<!doctype html>
|
|
<style>
|
|
div {
|
|
overflow: hidden;
|
|
border: 1px solid;
|
|
width: 20em;
|
|
}
|
|
</style>
|
|
<div id="host" contenteditable></div>
|
|
<script>
|
|
onload = () => {
|
|
host.focus();
|
|
}
|
|
</script>
|