</div>
  </div>
</div>
<script>

// Tests that scroll anchoring is suppressed when an element in the scroller
// changes its in-flow state.

var scroller;

function runCase(oldPos, newPos, expectSuppression, skipInverse) {
  var header = document.querySelector("#header");
  var before = document.querySelector("#before");

  header.style.position = oldPos;
  before.style.height = "0";
  scroller.scrollTop = 200;

  header.style.position = newPos;
  before.style.height = "25px";

  var expectedTop = expectSup