author Cosmin Sabou <>
Sun, 05 Feb 2023 19:37:33 +0000
changeset 651812 d8601249f1eb8c52c742b0c19c9ca0fa8f2e31fe
parent 568166 73824cc3c66a3aa170d3b0c688e7dee58d06f1d7
permissions -rw-r--r--
Bug 1806090 - temporarily disable browser_quickactions.js on linux for frequent failures. r=intermittent-reviewers,MasterWayZ Differential Revision:

  <meta name="viewport" content="width=device-width; initial-scale=1.0">
  <title>Wheel-scrolling over inactive subframe with perspective</title>
  <script type="application/javascript" src="apz_test_native_event_utils.js"></script>
  <script type="application/javascript" src="apz_test_utils.js"></script>
  <script src="/tests/SimpleTest/paint_listener.js"></script>
  <script type="application/javascript">

async function test() {
  var subframe = document.getElementById("scroll");

  // scroll over the middle of the subframe, to make sure it scrolls,
  // not the page
  var scrollPos = subframe.scrollTop;
  await promiseMoveMouseAndScrollWheelOver(subframe, 100, 100);
  dump("after scroll, subframe.scrollTop = " + subframe.scrollTop + "\n");
  ok(subframe.scrollTop > scrollPos, "subframe scrolled after wheeling over it");

.then(subtestDone, subtestFailed);

    #scroll {
      width: 200px;
      height: 200px;
      overflow: scroll;
      perspective: 400px;
    #scrolled {
      width: 200px;
      height: 1000px; /* so the subframe has room to scroll */
      background: linear-gradient(red, blue); /* so you can see it scroll */
      transform: translateZ(0px); /* so the perspective makes it to the display list */
  <div id="scroll">
    <div id="scrolled"></div>
  <div style="height: 5000px;"></div><!-- So the page is scrollable as well -->