summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/html/rendering/widgets/the-select-element/select-invalidation.html
blob: 199db0b7aab7ab0fafcddaa0750905eb5ea23e66 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<!DOCTYPE html>
<html class="reftest-wait">
<meta charset="utf-8">
<title>Select rendering invalidation</title>
<link rel="author" href="mailto:masonf@chromium.org">
<link rel="help"  href="https://html.spec.whatwg.org/multipage/form-elements.html#the-select-element">
<link rel="match"  href="select-invalidation-ref.html">

<style>
  select {
    color: red;
  }
</style>

<select id=select>
  <option>The down arrow should be green</option>
  <option>value B</option>
</select>

<script>
  requestAnimationFrame(() => {
    requestAnimationFrame(() => {
      select.style.color = "lime";
      requestAnimationFrame(() => {
        requestAnimationFrame(() => {
          document.documentElement.classList.remove("reftest-wait");
        });
      });
    });
  });
</script>