[0];
        wrapper.style.contain = value;
    }

    promise_test(async () => {
        verifySizeContainment("none", /*applied=*/false);
    }, "contain: none");

    promise_test(async () => {
        verifySizeContainment("size", /*applied=*/true);
    }, "contain: size");

    promise_test(async () => {
        setContain("none_to_size", "size");
        verifySizeContainment("none_to_size", /*applied=*/true);
    }, "switching contain from none to size");

    promise_test(async () => {
        setCo