gecko-dev/layout/reftests/selection/1478604.html
Emilio Cobos Álvarez 1a7f1a4dbf Bug 1478604 - Fix RepaintSelectionRunner so that it does something for non-presShell impls. r=masayuki
The regressing bug made RepaintSelectionRunner do nothing for any
nsISelectionListener that wasn't a PresShell.

Differential Revision: https://phabricator.services.mozilla.com/D2846

--HG--
extra : moz-landing-system : lando
2018-08-07 12:55:21 +00:00

24 lines
491 B
HTML

<!doctype html>
<html class="reftest-wait">
<style>
input {
border: 0;
}
</style>
<label id="fooLabel" for="foo">Foo label</label>
<input id="foo" type="text" value="foo" >
<label id="barLabel" for="bar">Bar label</label>
<input id="bar" type="text" value="bar">
<script>
onload = function() {
fooLabel.click();
requestAnimationFrame(() => {
barLabel.click();
requestAnimationFrame(() => {
document.documentElement.className = "";
});
});
}
</script>
</html>