ertyValue("--stuck"), "yes",
                  "Initially stuck");

    stuck.style.containerType = "initial";
    await waitForAnimationFrames(2);
    assert_equals(getComputedStyle(target).getPropertyValue("--stuck"), "no",
                  "container-type removed");

    stuck.style.containerType = "";
    await waitForAnimationFrames(2);
    assert_equals(getComputedStyle(target).getPropertyValue("--stuck"), "yes",
                  "container-type back to scroll-state");
  }, "Check that scroll-state(