-
Notifications
You must be signed in to change notification settings - Fork 1
/
grid_tests.html
108 lines (94 loc) · 3.27 KB
/
grid_tests.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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
<!doctype html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Grid tests</title>
<style type="text/css">
</style>
</head>
<body>
<h1>Grid tests</h1>
<h2>Grid 1</h2>
<div role="grid" aria-readonly="true">
<div role="row">
<span role="gridcell"></span>
<span role="columnheader">John</span>
<span role="columnheader">Ivan</span>
</div>
<div role="row">
<span role="rowheader">Apples</span>
<span role="gridcell">10</span>
<span role="gridcell">12</span>
</div>
<div role="row">
<span role="rowheader">Oranges</span>
<span role="gridcell">1</span>
<span role="gridcell">9</span>
</div>
</div>
<h2>Grid 2</h2>
<div role="grid" aria-readonly="true">
<div role="row">
<span role="rowheader">Month</span>
<span role="gridcell">Jan</span>
<span role="gridcell">Feb</span>
<span role="gridcell">Mar</span>
</div>
<div role="row">
<span role="rowheader">Expenses</span>
<span role="gridcell">100</span>
<span role="gridcell">130</span>
<span role="gridcell">90</span>
</div>
</div>
<h2>Grid 3 - grid with aria-label</h2>
<div role="grid" aria-label="foo" aria-readonly="true">
<div role="row">
<span role="rowheader">Month</span>
<span role="gridcell">Jan</span>
<span role="gridcell">Feb</span>
<span role="gridcell">Mar</span>
</div>
<div role="row">
<span role="rowheader">Expenses</span>
<span role="gridcell">100</span>
<span role="gridcell">130</span>
<span role="gridcell">90</span>
</div>
</div>
<h2>Grid 4 - grid with labelledby</h2>
<h3 id="tc">This is to be the table caption</h3>
<div role="grid" aria-labelledBy="tc" aria-readonly="true">
<div role="row">
<span role="rowheader">Month</span>
<span role="gridcell">Jan</span>
<span role="gridcell">Feb</span>
<span role="gridcell">Mar</span>
</div>
<div role="row">
<span role="rowheader">Expenses</span>
<span role="gridcell">100</span>
<span role="gridcell">130</span>
<span role="gridcell">90</span>
</div>
</div>
<h2>Grid 5</h2>
<div role="grid" aria-readonly="true">
<div role="row">
<span role="gridcell"></span>
<span role="gridcell" id="aa">John</span>
<span role="gridcell" id="bb">Ivan</span>
</div>
<div role="row">
<span role="gridcell" id="cc">Apples</span>
<span role="gridcell" id="dd" aria-labelledby="aa cc">10</span>
<span role="gridcell" id="ee" aria-labelledby="bb cc">12</span>
</div>
<div role="row">
<span role="gridcell" id="ff">Oranges</span>
<span role="gridcell" id="gg" aria-labelledby="aa ff">1</span>
<span role="gridcell" id="hh" aria-labelledby="bb ff">9</span>
</div>
</div>
</body>
</html>