nt.body.appendChild(link);
    });
}, "CSSStyleSheet.replaceSync should not trigger any loads from @import rules")

promise_test(() => {
  const span = document.createElement("span");
  thirdSection.appendChild(span);
  const shadowDiv = attachShadowDiv(span);
  const sheet = new CSSStyleSheet();
  span.shadowRoot.adoptedStyleSheets = [sheet];
  assert_equals(getComputedStyle(shadowDiv).color, "rgb(0, 0, 0)");
  // Replace and assert that the imported rule is NOT applied.
  const sheet_promise = sheet.repla