blob: 8730e727e0bea31267ede0421df78e259006ee3b [file] [edit]
<!DOCTYPE html>
<html class="reftest-wait">
<script>
onload = async () => {
const select = document.querySelector('select');
select.setCustomValidity('validity');
select.reportValidity();
const textarea = document.querySelector('textarea');
textarea.setRangeText('lol');
select.autofocus = true;
await new Promise(resolve => setTimeout(resolve, 0));
select.reportValidity();
textarea.blur();
await new Promise(resolve => requestAnimationFrame(resolve));
document.documentElement.classList.remove('reftest-wait');
}
</script>
<body>
<p>The onchange should not be triggered by textarea when it got something changed without being focused. Pass if not crashed, and the focused select box is displayed.</p>
<select></select>
<textarea></textarea>
</body>
</html>