ise.then((sheet) => {
    assert_equals(sheet.cssRules.length, 1);
    // @import not applied:
    assert_equals(getComputedStyle(shadowDiv).color, "rgb(0, 0, 0)");
    // regular rule applied:
    assert_equals(getComputedStyle(targetSpan).color, "rgb(0, 0, 255)");
  }).catch((reason) => {
    assert_unreached(`Promise was rejected (${reason}) when it should have been resolved`);
  });
}, 'CSSStyleSheet.replace ignores @import rule but still loads other rules');

test(() => {
  const span = document.create