pted stylesheets work');

test(() => {
  const sheet = new CSSStyleSheet();
  sheet.replaceSync(":host { color: red; }");
  const host = document.createElement("div");
  let sr = host.attachShadow({mode: "open"});
  sr.adoptedStyleSheets = [sheet];
  document.body.appendChild(host);
  assert_equals(getComputedStyle(host).color, "rgb(255, 0, 0)", "Style applies when connected");
  sheet.replaceSync(":host { color: blue; }");
  assert_equals(getComputedStyle(host).color, "rgb(0, 0, 255)", "Style update applie