This repository has been archived by the owner on Dec 29, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 48
/
Copy pathdemo.html
79 lines (61 loc) · 1.59 KB
/
demo.html
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
<!DOCTYPE html>
<html>
<head>
<link href="https://fonts.googleapis.com/css?family=Roboto:300,300italic,400,400italic" rel="stylesheet" type="text/css" />
<style type="text/css">
*[inert]::before {
background: rgba(0, 0, 0, 0.15);
}
button:focus {
border: 2px solid blue;
}
</style>
<script src="inert-polyfill.js"></script>
<script>
window.addEventListener('load', function() {
document.getElementById('btn-but').addEventListener('click', function() {
console.info('specific click');
});
});
</script>
</head>
<body>
<!-- <div inert>
<button>First post lol</button>
</div> -->
Hello! You can press this <button accessKey="T">thing (T)</button> or...
<div>
<button>that</button> or type <input type="text" placeholder="here" />
</div>
<div inert>
<input type="text" placeholder="Faux" />
<button accessKey="b" id="btn-but">But (B)</button> not these <button>buttons</button> or type <input type="text" placeholder="into this" />
</div>
but...
<span tabIndex="-1">
I'm focusable, but not tabbable
<button>Whoa</button>
</span>
<style>
.blah {
color:blue;
}
</style>
Maybe this one <button tabindex="99">hello (99)</button> or <button>goodbye</button> what about <input type="text" placeholder="some stuff" />
<span tabIndex="0">
I can be tabbed to
<button inert>Inert</button>
<button>Test</button>
<button inert>Inert</button>
<button>Test</button>
</span>
<div inert>
<button>What about me?</button>
<div inert>
<button>Inert within inert</button>
</div>
<button>or meee</button>
</div>
<button>Trailing button</button>
</body>
</html>