romise()).then(values => {
    const greenStyleSheet = values[0];
    const redStyleSheet = values[1];
    shadowRoot.adoptedStyleSheets = [greenStyleSheet];
    assert_equals(getComputedStyle(greenShadowSpan).color, "rgb(0, 128, 0)", "Style applies connected");
    assert_equals(getComputedStyle(redShadowSpan).color, "rgb(0, 0, 0)", "Style applies when connected");
    let hostParent = shadowHost.parentNode;
    hostParent.removeChild(shadowHost);
    assert_equals(getComputedStyle(greenShadowSpan).color, 