me = "";
  contents.className = "";
  checkSize(0, 0, "Sizing after cleanup");
}

promise_test(async function() {
  this.add_cleanup(cleanup);
  parent.classList.add("vertical");
  target.className = "cis-auto skip-contents";
  contents.classList.add("size-100-50");
  checkSize(2, 0, "Size containment with no last remembered width");

  target.classList.remove("skip-contents");
  checkSize(50, 100, "Sizing normally");

  await nextRendering();
  target.classList.add("skip-contents");
  checkSize(50, 0, "Usi