-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
278 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
116 changes: 116 additions & 0 deletions
116
.../checker/accessibility/rules/target_spacing_sufficient_ruleunit/block_element_inline.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,116 @@ | ||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> | ||
|
||
<!-- | ||
/****************************************************************************** | ||
Copyright:: 2020- IBM, Inc | ||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
*****************************************************************************/ | ||
--> | ||
|
||
<html lang="en"> | ||
|
||
<head> | ||
<title>RPT Test Suite</title> | ||
<style> | ||
a.link { | ||
display: inline; /* the default for a */ | ||
width: 100px; | ||
height: 100px; | ||
padding: 5px; | ||
} | ||
|
||
button.btn { | ||
display: inline; | ||
width: 100px; | ||
height: 100px; | ||
padding: 5px; | ||
} | ||
|
||
button.btn2 { | ||
display: inline-block; | ||
width: 100px; | ||
height: 100px; | ||
padding: 5px; | ||
border: 1px solid blue; | ||
background-color: yellow; | ||
} | ||
|
||
p { | ||
display: block; | ||
width: 100px; | ||
height: 100px; | ||
padding: 5px; | ||
border: 1px solid blue; | ||
background-color: yellow; | ||
} | ||
</style> | ||
</head> | ||
|
||
<body> | ||
|
||
<h1>The display Property</h1> | ||
|
||
<h2>display: inline</h2> | ||
<div>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum consequat scelerisque elit sit amet consequat. Aliquam erat volutpat. <a class='link' href="google.com">Aliquam</a> <button class='btn' value='venenatis'></button> gravida nisl sit amet facilisis. Nullam cursus fermentum velit sed laoreet. </div> | ||
|
||
<h2>display: inline-block</h2> | ||
<div>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum consequat scelerisque elit sit amet consequat. Aliquam erat volutpat. <span class="b">Aliquam</span> <span class="b">venenatis</span> gravida nisl sit amet facilisis. Nullam cursus fermentum velit sed laoreet. </div> | ||
|
||
<h2>display: block</h2> | ||
<div>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum consequat scelerisque elit sit amet consequat. Aliquam erat volutpat. <span class="c">Aliquam</span> <span class="c">venenatis</span> gravida nisl sit amet facilisis. Nullam cursus fermentum velit sed laoreet. </div> | ||
|
||
|
||
|
||
<script> | ||
UnitTest = { | ||
ruleIds: ["element_tabbable_unobscured"], | ||
results: [ | ||
{ | ||
"ruleId": "element_tabbable_unobscured", | ||
"value": [ | ||
"INFORMATION", | ||
"POTENTIAL" | ||
], | ||
"path": { | ||
"dom": "/html[1]/body[1]/div[1]", | ||
"aria": "/document[1]" | ||
}, | ||
"reasonId": "potential_obscured", | ||
"message": "Confirm that when the element receives focus, it is not covered or, if covered by user action, can be uncovered without moving focus", | ||
"messageArgs": [], | ||
"apiArgs": [], | ||
"category": "Accessibility" | ||
}, | ||
{ | ||
"ruleId": "element_tabbable_unobscured", | ||
"value": [ | ||
"INFORMATION", | ||
"PASS" | ||
], | ||
"path": { | ||
"dom": "/html[1]/body[1]/div[2]", | ||
"aria": "/document[1]" | ||
}, | ||
"reasonId": "pass", | ||
"message": "The element is not entirely covered by other content", | ||
"messageArgs": [], | ||
"apiArgs": [], | ||
"category": "Accessibility" | ||
} | ||
] | ||
} | ||
</script> | ||
</body> | ||
|
||
</html> |
121 changes: 121 additions & 0 deletions
121
...est/v2/checker/accessibility/rules/target_spacing_sufficient_ruleunit/element_inline.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,121 @@ | ||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> | ||
|
||
<!-- | ||
/****************************************************************************** | ||
Copyright:: 2020- IBM, Inc | ||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
*****************************************************************************/ | ||
--> | ||
|
||
<html lang="en"> | ||
|
||
<head> | ||
<title>RPT Test Suite</title> | ||
<style> | ||
a.link { | ||
display: inline; /* the default for a */ | ||
width: 100px; | ||
height: 100px; | ||
line-height: 100px; | ||
padding: 5px; | ||
} | ||
|
||
button.btn { | ||
display: inline; | ||
/**width: 100px; | ||
height: 100px; | ||
padding: 5px;*/ | ||
} | ||
|
||
button.btn2 { | ||
display: inline-block; | ||
width: 100px; | ||
height: 100px; | ||
padding: 5px; | ||
border: 1px solid blue; | ||
background-color: yellow; | ||
} | ||
|
||
p { | ||
display: block; | ||
width: 100px; | ||
height: 100px; | ||
padding: 5px; | ||
border: 1px solid blue; | ||
background-color: yellow; | ||
} | ||
</style> | ||
</head> | ||
|
||
<body> | ||
|
||
<h1>The display Property</h1> | ||
|
||
<h2>display: inline</h2> | ||
<div>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum consequat scelerisque elit sit amet consequat. Aliquam erat volutpat. | ||
<a class='link' href="google.com">Aliquam</a> | ||
<button class='btn' value='venenatis'></button> | ||
gravida nisl sit amet facilisis. Nullam cursus fermentum velit sed laoreet. | ||
</div> | ||
|
||
<h2>display: inline-block</h2> | ||
<div>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum consequat scelerisque elit sit amet consequat. Aliquam erat volutpat. <span class="b">Aliquam</span> <span class="b">venenatis</span> gravida nisl sit amet facilisis. Nullam cursus fermentum velit sed laoreet. </div> | ||
|
||
<h2>display: block</h2> | ||
<div>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum consequat scelerisque elit sit amet consequat. Aliquam erat volutpat. <span class="c">Aliquam</span> <span class="c">venenatis</span> gravida nisl sit amet facilisis. Nullam cursus fermentum velit sed laoreet. </div> | ||
|
||
|
||
|
||
<script> | ||
UnitTest = { | ||
ruleIds: ["element_tabbable_unobscured"], | ||
results: [ | ||
{ | ||
"ruleId": "element_tabbable_unobscured", | ||
"value": [ | ||
"INFORMATION", | ||
"POTENTIAL" | ||
], | ||
"path": { | ||
"dom": "/html[1]/body[1]/div[1]", | ||
"aria": "/document[1]" | ||
}, | ||
"reasonId": "potential_obscured", | ||
"message": "Confirm that when the element receives focus, it is not covered or, if covered by user action, can be uncovered without moving focus", | ||
"messageArgs": [], | ||
"apiArgs": [], | ||
"category": "Accessibility" | ||
}, | ||
{ | ||
"ruleId": "element_tabbable_unobscured", | ||
"value": [ | ||
"INFORMATION", | ||
"PASS" | ||
], | ||
"path": { | ||
"dom": "/html[1]/body[1]/div[2]", | ||
"aria": "/document[1]" | ||
}, | ||
"reasonId": "pass", | ||
"message": "The element is not entirely covered by other content", | ||
"messageArgs": [], | ||
"apiArgs": [], | ||
"category": "Accessibility" | ||
} | ||
] | ||
} | ||
</script> | ||
</body> | ||
|
||
</html> |