Element("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.
  try {
    sheet.replaceSync(import_text);
    // replaceSync() ignores @import rules:
    assert_equals(sheet.cssRules.length, 0);
    assert_equals(getComputedStyle(shadowDiv).color, "rgb(0, 0, 0)");