Commit 3a3af533 authored by Hiroyuki Ikezoe's avatar Hiroyuki Ikezoe Committed by hikezoe.birchill@mozilla.com
Browse files

Bug 1967169 - Explicitly set layout.scroll.disable-pixel-alignment to...

Bug 1967169 - Explicitly set layout.scroll.disable-pixel-alignment to test_bug1515822.html. r=dlrobertson

Differential Revision: https://phabricator.services.mozilla.com/D249922
parent 02a77bdf
Loading
Loading
Loading
Loading
+7 −0
Changes for layout/base/tests/test_bug1515822.html: 7 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -27,6 +27,11 @@
  </div>
</div>
<script>
SimpleTest.waitForExplicitFinish();

SpecialPowers.pushPrefEnv({
  set: [ ["layout.scroll.disable-pixel-alignment", true] ]
}).then(() => {
  const outer = document.querySelector('#outer');

  outer.scrollTop = 100;
@@ -44,4 +49,6 @@ outer.parentElement.style.display = "";
  document.body.offsetTop; // flush layout
  is(outer.scrollTop, 100, 'scroll position should be restored');
  is(outer.scrollLeft, 100, 'scroll position should be restored');
  SimpleTest.finish();
});
</script>