5
5
< title > test case</ title >
6
6
</ head >
7
7
< body >
8
+ < a href ="https://ibm.com "> Content</ a >
9
+ < hr style ="margin-top:50px; ">
10
+ < div > Auto Scrollable w/o tabindex</ div >
11
+ < section id ='section1 ' style ="height: 100px; width: 500px; overflow-x: auto; overflow-y: auto; ">
8
12
< hr style ="margin-top:50px; ">
9
13
< section id ='section1 ' style ="height: 100px; width: 500px; overflow-x: hidden; overflow-y: hidden; ">
10
- < p >
11
- Web Content Accessibility Guidelines (WCAG) covers a wide range of recommendations for making Web content more
12
- accessible.
13
- </ p >
14
-
15
- </ section >
14
+ < div > Auto Scrollable w/o tabindex</ div >
15
+ < section id ='section3 ' style ="height: 100px; width: 500px; overflow-x: auto; overflow-y: auto; ">
16
+ < h1 > WCAG Abstract (no tabindex)</ h1 >
17
+ < p >
18
+ Web Content Accessibility Guidelines (WCAG) covers a wide range of recommendations for making Web content more
19
+ accessible. Following these guidelines will make content more accessible to a wider range of people with
20
+ disabilities, including accommodations for blindness and low vision, deafness and hearing loss, limited movement,
21
+ speech disabilities, photosensitivity, and combinations of these, and some accommodation for learning disabilities
22
+ and cognitive limitations; but will not address every user need for people with these disabilities. These guidelines
23
+ address accessibility of web content on desktops, laptops, tablets, and mobile devices. Following these guidelines
24
+ will also often make Web content more usable to users in general.
25
+ </ p >
26
+ </ section >
27
+ < hr style ="margin-top:50px; ">
28
+ < div > Auto Scrollable w/ tabindex='-1'</ div >
29
+ < section id ='section3 ' tabindex ='-1 ' style ="height: 100px; width: 500px; overflow-x: auto; overflow-y: auto; ">
30
+ < h1 > WCAG Abstract</ h1 >
31
+ < p >
32
+ Web Content Accessibility Guidelines (WCAG) covers a wide range of recommendations for making Web content more
33
+ accessible. Following these guidelines will make content more accessible to a wider range of people with
34
+ disabilities, including accommodations for blindness and low vision, deafness and hearing loss, limited movement,
35
+ speech disabilities, photosensitivity, and combinations of these, and some accommodation for learning disabilities
36
+ and cognitive limitations; but will not address every user need for people with these disabilities. These guidelines
37
+ address accessibility of web content on desktops, laptops, tablets, and mobile devices. Following these guidelines
38
+ will also often make Web content more usable to users in general.
39
+ </ p >
40
+ </ section >
41
+
16
42
< hr style ="margin-top:50px; ">
43
+ < div > iframe w/o tabindex short content</ div >
44
+ < iframe id ='section2 ' style ="height: 100px; width: 500px; overflow-x: auto; overflow-y: auto; "
45
+ srcdoc ="Web Content Accessibility Guidelines (WCAG) covers a wide range of recommendations for making Web content more
46
+ accessible. "
47
+
48
+ >
49
+ </ iframe >
50
+
51
+ < hr style ="margin-top:50px; ">
52
+ < div > iframe w/o tabindex long content</ div >
53
+ < iframe id ='section2 ' role ='none ' style ="height: 100px; width: 500px; overflow-x: auto; overflow-y: auto; "
54
+ srcdoc ="Web Content Accessibility Guidelines (WCAG) covers a wide range of recommendations for making Web content more
17
55
<iframe id='section2' src='./test2.html' style= "height: 100px; width: 500px; overflow-x: hidden; overflow-y: hidden; ">
18
56
19
57
</ body >
26
64
< h1 > WCAG Abstract</ h1 >
27
65
< p >
28
66
Web Content Accessibility Guidelines (WCAG) covers a wide range of recommendations for making Web content more
67
+
68
+ will also often make Web content more usable to users in general."
69
+
70
+ >
71
+ </ iframe >
72
+
73
+ < hr style ="margin-top:50px; ">
74
+ < div > iframe w/ tabindex='-1'</ div >
75
+ < iframe id ='section2 ' tabindex ='-1 ' style ="height: 100px; width: 500px; overflow-x: auto; overflow-y: auto; "
76
+ srcdoc ="Web Content Accessibility Guidelines (WCAG) covers a wide range of recommendations for making Web content more
29
77
accessible. Following these guidelines will make content more accessible to a wider range of people with
30
78
disabilities, including accommodations for blindness and low vision, deafness and hearing loss, limited movement,
31
79
speech disabilities, photosensitivity, and combinations of these, and some accommodation for learning disabilities
32
80
and cognitive limitations; but will not address every user need for people with these disabilities. These guidelines
33
81
address accessibility of web content on desktops, laptops, tablets, and mobile devices. Following these guidelines
34
- will also often make Web content more usable to users in general.
35
- </ p >
36
- </ section >
82
+ will also often make Web content more usable to users in general. "
83
+
84
+ >
85
+ </ iframe >
86
+
87
+ < iframe role ='none ' src ="./tinker.html ">
88
+ </ iframe >
89
+
37
90
38
91
< hr style ="margin-top:50px; ">
39
92
< button aria-label ="a test button ">
@@ -49,73 +102,24 @@ <h1>WCAG Abstract</h1>
49
102
< button aria-label ="a test nutton "> < img src ="http://thinkingstiff.com/images/matt.jpg " alt =""> </ button >
50
103
< button aria-label ="a test nutton "> < img src ="http://thinkingstiff.com/images/matt.jpg " role ="none "> </ button >
51
104
52
- < a href =" http://ibm.com " > < img src =" http://thinkingstiff.com/images/matt.jpg " /> Here </ a >
53
-
54
- < a href =" http://ibm.com " > < img src =" http://thinkingstiff.com/images/matt.jpg " alt =" image " /> </ a >
105
+ will also often make Web content more usable to users in general.
106
+ </ p >
107
+ </ section >
55
108
56
- < ol >
57
- < li > Option 1< img src ="http://thinkingstiff.com/images/matt.jpg "> </ li >
58
- < li > Option 2< img src ="http://thinkingstiff.com/images/matt.jpg "> </ li >
59
- </ ol >
109
+ < hr style ="margin-top:50px; ">
110
+ < button aria-label ="a test button ">
111
+ < svg >
112
+ </ svg >
113
+ </ button >
60
114
115
+ < button aria-label ="a test nutton "> < img src ="http://thinkingstiff.com/images/matt.jpg "> </ button >
116
+ < button > < img src ="http://thinkingstiff.com/images/matt.jpg " alt ="an image "> </ button >
117
+ < button > < img src ="http://thinkingstiff.com/images/matt.jpg "> Submit</ button >
118
+ < button > < img src ="http://thinkingstiff.com/images/matt.jpg " alt =""> Submit</ button >
61
119
62
- </ main>
120
+ < button aria-label ="a test nutton "> < img src ="http://thinkingstiff.com/images/matt.jpg " alt =""> </ button >
121
+ < button aria-label ="a test nutton "> < img src ="http://thinkingstiff.com/images/matt.jpg " role ="none "> </ button >
63
122
64
- < script >
65
- UnitTest = {
66
- ruleIds : [ "element_scrollable_tabbable" , "element_tabbable_role_valid" ] ,
67
- results : [
68
- {
69
- "ruleId" : "element_scrollable_tabbable" ,
70
- "value" : [
71
- "INFORMATION" ,
72
- "PASS"
73
- ] ,
74
- "path" : {
75
- "dom" : "/html[1]/body[1]/section[1]" ,
76
- "aria" : "/document[1]"
77
- } ,
78
- "reasonId" : "pass_tabbable" ,
79
- "message" : "The scrollable element is tabbable" ,
80
- "messageArgs" : [ ] ,
81
- "apiArgs" : [ ] ,
82
- "category" : "Accessibility"
83
- } ,
84
- {
85
- "ruleId" : "element_tabbable_role_valid" ,
86
- "value" : [
87
- "INFORMATION" ,
88
- "FAIL"
89
- ] ,
90
- "path" : {
91
- "dom" : "/html[1]/body[1]/section[2]" ,
92
- "aria" : "/document[1]"
93
- } ,
94
- "reasonId" : "fail_no_valid_role" ,
95
- "message" : "The tabbable element does not have a valid widget role" ,
96
- "messageArgs" : [ ] ,
97
- "apiArgs" : [ ] ,
98
- "category" : "Accessibility"
99
- } ,
100
- {
101
- "ruleId" : "element_tabbable_role_valid" ,
102
- "value" : [
103
- "INFORMATION" ,
104
- "FAIL"
105
- ] ,
106
- "path" : {
107
- "dom" : "/html[1]/body[1]/section[3]" ,
108
- "aria" : "/document[1]"
109
- } ,
110
- "reasonId" : "fail_no_valid_role" ,
111
- "message" : "The tabbable element does not have a valid widget role" ,
112
- "messageArgs" : [ ] ,
113
- "apiArgs" : [ ] ,
114
- "category" : "Accessibility"
115
- }
116
- ]
117
- }
118
- </ script >
119
123
</ body>
120
124
121
125
</ html>
0 commit comments