romise_test(() => {
  const sheet = new CSSStyleSheet({disabled: true, media: "screen, print"});
  const promise_sheet = sheet.replace(redStyleTexts[0]);
  return promise_sheet.then(function(sheet) {
    assert_equals(sheet.title, null, "The title attribute must return the title or null if title is the empty string");
    assert_equals(sheet.ownerNode, null);
    assert_equals(sheet.ownerRule, null);
    assert_equals(sheet.media.length, 2);
    assert_equals(sheet.media.item(0), "screen");
    assert_equal