-
Notifications
You must be signed in to change notification settings - Fork 0
/
childspans.html
42 lines (42 loc) · 1.04 KB
/
childspans.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Child Spans Inside Non-Interactive Elements</title>
<style type="text/css">
.sr-only {
border: 0 !important;
clip: rect(1px, 1px, 1px, 1px) !important; /* 1 */
-webkit-clip-path: inset(50%) !important;
clip-path: inset(50%) !important; /* 2 */
height: 1px !important;
margin: -1px !important;
overflow: hidden !important;
padding: 0 !important;
position: absolute !important;
width: 1px !important;
white-space: nowrap !important;
}
</style>
</head>
<body>
<h1>Child Spans Inside Non-Interactive Elements</h1>
<h2>In Table Headers</h2>
<table>
<thead>
<tr>
<th scope="col">Su<span class="sr-only">nday</span></th>
<th scope="col">Mo<span class="sr-only">nday</span></th>
</tr>
</thead>
<tbody>
<tr>
<td>Test</td>
<td>Another Test</td>
</tr>
</tbody>
</table>
<h2>In a Paragraph</h2>
<p>The report for Q4 2018 was released on <span>January 28, 2019</span>.</p>
</body>
</html>