);
  container.innerHTML = '<fieldset><my-control disabled></my-control></fieldset>';

  const fieldset = container.firstElementChild;
  fieldset.disabled = true;
  fieldset.disabled = false;
  assert_array_equals(container.querySelector('my-control').disabledHistory(), [true]);
}, 'Toggling "disabled" attribute on a <fieldset> does not trigger a callback on disabled custom element descendant');
</script>
</body>
