summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/html/rendering/non-replaced-elements/form-controls/toggle-display.html
blob: 127679b2ad9b4c0cebe202c35ec99a5c5d3f7aaf (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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
<!doctype html>
<html class="reftest-wait">
<title>toggle 'display' test</title>
<meta charset="utf-8">
<link rel="match" href="toggle-display-ref.html">

<div id="tests">
 <input type="hidden">
 <input type="text">
 <input type="text" value="a">
 <input type="search">
 <input type="search" value="a">
 <input type="tel">
 <input type="tel" value="123456789">
 <input type="url">
 <input type="url" value="http://a">
 <input type="email">
 <input type="email" value="a">
 <input type="password">
 <input type="password" value="a">
 <input type="date">
 <input type="month">
 <input type="week">
 <input type="time">
 <input type="datetime-local">
 <input type="number">
 <input type="range">
 <input type="color">
 <input type="checkbox">
 <input type="radio">
 <input type="file">
 <input type="submit">
 <input type="image">
 <input type="reset">
 <input type="button">
 <input type="button" value="a">
 <select><optgroup><option></select>
 <select><optgroup><option>a</select>
 <select multiple></select>
 <select multiple><optgroup>a</optgroup><option>b</option></select>
 <optgroup></optgroup>
 <option></option>
 <button></button>
 <button>a</button>
 <textarea></textarea>
 <textarea>a</textarea>
</div>

<script>
window.onload = () => {
  requestAnimationFrame(() => {
    requestAnimationFrame(() => {
      let tests = document.querySelector('#tests');
      tests.style.display = 'none';
      requestAnimationFrame(() => {
        tests.style.display = '';
        document.documentElement.classList.remove("reftest-wait");
      });
    });
  });
}
</script>

</html>