chromium/third_party/blink/web_tests/wpt_internal/html/semantics/forms/the-select-element/stylable-select/select-open-invalidation.tentative.html

<!DOCTYPE html>
<html class=reftest-wait>
<link rel=author href="mailto:[email protected]">
<link rel=help href="https://github.com/whatwg/html/issues/9799">
<link rel=match href="select-open-invalidation-ref.html">
<script src="/resources/testdriver.js"></script>
<script src="/resources/testdriver-vendor.js"></script>

<style>
select > button {
  color: red;
}
select:open > button {
  color: green;
}
</style>

<select style="appearance:base-select">
  <button>button</button>
  <option>one</option>
  <option>two</option>
</select>

<script>
(async () => {
  await test_driver.bless();
  await new Promise(requestAnimationFrame);
  try {
    document.querySelector('select').showPicker();
  } catch (error) {}
  await new Promise(requestAnimationFrame);
  document.documentElement.classList.remove('reftest-wait');
})();
</script>