-
Notifications
You must be signed in to change notification settings - Fork 2
/
example2.html
87 lines (68 loc) · 1.52 KB
/
example2.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>w3c-disclosure Button Demo</title>
<script src="components/platform/platform.js"></script>
<link rel="import" href="w3c-disclosure.html">
<style>table
{
border-collapse:collapse;
width:20.2em;
border: 1px solid #630;
font: normal 90% arial, Verdana, helvetica, sans-serif;
}
table tr th {text-align:left}
table td, table th
{
text-align: left;
vertical-align: top;
padding: 0.3em;
border: 1px solid #630;
}
th {
font-weight: bold;
background-color:#ffffff;
text-align: center;
}
button {background:white; outline:dashed thin #666;border-style:none;}
button:focus, button:active {outline:solid thin #000000;border-style:none;}
</style>
</head>
<body unresolved>
<h1> <a href="disclosure-button-spec/index.html">w3c-disclosure</a> custom control example</h1>
<button is="w3c-disclosure" controlfor="table-details">Rainfall in millimetres
by Country and Season</button>
<table id="table-details">
<caption>rainfall data</caption>
<tr>
<td></td>
<th scope="col">UK </th>
<th scope="col">Japan</th>
<th scope="col">Australia</th>
</tr>
<tr>
<th scope="row">Spring </th>
<td>5.5 (highest)</td>
<td>2.4 </td>
<td>2 (lowest)</td>
</tr>
<tr><th scope="row">Summer </th>
<td>4.5 (highest)</td>
<td>3.4</td>
<td>2 (lowest)</td>
</tr>
<tr>
<th scope="row">Autumn</th>
<td>3.5 (highest)</td>
<td>1.8 </td>
<td>1.5 (lowest)</td>
</tr>
<tr>
<th scope="row">Winter</th>
<td>1.5 (highest)</td>
<td>1.2 </td><td>1 (lowest)</td>
</tr>
</table>
</body>
</html>