an).color, "rgb(255, 0, 0)", "non-adopted styles should be ordered before adopted styles");

  document.adoptedStyleSheets = [];
  assert_equals(getComputedStyle(span).color, "rgb(255, 255, 255)", "with no adopted styles in conflict, the non-adopted style should take effect");

  document.adoptedStyleSheets = [sheet];
  assert_equals(getComputedStyle(span).color, "rgb(255, 0, 0)", "the adopted style should be ordered after the non-adopted style");

  sheet.disabled = true;
  assert_equals(getComputedStyle(s