-
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.
Merge pull request #1785 from IBMa/dev-1008
fix(engine): support CSS content-visibility style
- Loading branch information
Showing
8 changed files
with
734 additions
and
4 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
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
226 changes: 226 additions & 0 deletions
226
...ker/accessibility/rules/aria_accessiblename_exists_ruleunit/contentvisibility-hidden.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,226 @@ | ||
<!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> | ||
</head> | ||
|
||
<body> | ||
|
||
<a href="#navskip">skip to main content</a> | ||
|
||
|
||
<div>Test case: content-visibility:hidden</div> | ||
|
||
|
||
|
||
<!-- ################################################################### --> | ||
|
||
|
||
<div>content visibility Tests</div> | ||
|
||
|
||
<ul> | ||
<li>Test - content-visibility</li> | ||
</ul> | ||
|
||
<h4><span style="content-visibility: visible">H4 visible</span></h4> | ||
<h5><span style="content-visibility: auto">H5 auto</span></h5> | ||
<h6><span style="content-visibility:none">H6</span></h6> | ||
|
||
<h6><span style="content-visibility: hidden;">H6 hidden</span></h6> | ||
<h6><span style="content-visibility: hidden;display:inline">H6 hidden display inline</span></h6> | ||
|
||
<h6><span style="content-visibility: hidden;display:block">H6 hidden display block</span></h6> | ||
<h6><span style="content-visibility: hidden;display:inline-block">H6 hidden display inline block</span></h6> | ||
<h6><span style="content-visibility: hidden;display:flex">H6 hidden display flex</span></h6> | ||
<h6><span style="content-visibility: hidden;display:grid">H6 hidden display grid</span></h6> | ||
|
||
<a name="navskip"></a> | ||
|
||
|
||
<script> | ||
UnitTest = { | ||
ruleIds: ["aria_accessiblename_exists"], | ||
results: [ | ||
{ | ||
"ruleId": "aria_accessiblename_exists", | ||
"value": [ | ||
"INFORMATION", | ||
"PASS" | ||
], | ||
"path": { | ||
"dom": "/html[1]/body[1]/h4[1]", | ||
"aria": "/document[1]/heading[1]" | ||
}, | ||
"reasonId": "pass", | ||
"message": "An accessible name is provided for the element", | ||
"messageArgs": [], | ||
"apiArgs": [], | ||
"category": "Accessibility" | ||
}, | ||
{ | ||
"ruleId": "aria_accessiblename_exists", | ||
"value": [ | ||
"INFORMATION", | ||
"PASS" | ||
], | ||
"path": { | ||
"dom": "/html[1]/body[1]/h5[1]", | ||
"aria": "/document[1]/heading[2]" | ||
}, | ||
"reasonId": "pass", | ||
"message": "An accessible name is provided for the element", | ||
"messageArgs": [], | ||
"apiArgs": [], | ||
"category": "Accessibility" | ||
}, | ||
{ | ||
"ruleId": "aria_accessiblename_exists", | ||
"value": [ | ||
"INFORMATION", | ||
"PASS" | ||
], | ||
"path": { | ||
"dom": "/html[1]/body[1]/h6[1]", | ||
"aria": "/document[1]/heading[3]" | ||
}, | ||
"reasonId": "pass", | ||
"message": "An accessible name is provided for the element", | ||
"messageArgs": [], | ||
"apiArgs": [], | ||
"category": "Accessibility" | ||
}, | ||
{ | ||
"ruleId": "aria_accessiblename_exists", | ||
"value": [ | ||
"INFORMATION", | ||
"PASS" | ||
], | ||
"path": { | ||
"dom": "/html[1]/body[1]/h6[2]", | ||
"aria": "/document[1]/heading[4]" | ||
}, | ||
"reasonId": "pass", | ||
"message": "An accessible name is provided for the element", | ||
"messageArgs": [], | ||
"apiArgs": [], | ||
"category": "Accessibility" | ||
}, | ||
{ | ||
"ruleId": "aria_accessiblename_exists", | ||
"value": [ | ||
"INFORMATION", | ||
"PASS" | ||
], | ||
"path": { | ||
"dom": "/html[1]/body[1]/h6[3]", | ||
"aria": "/document[1]/heading[5]" | ||
}, | ||
"reasonId": "pass", | ||
"message": "An accessible name is provided for the element", | ||
"messageArgs": [], | ||
"apiArgs": [], | ||
"category": "Accessibility" | ||
}, | ||
{ | ||
"ruleId": "aria_accessiblename_exists", | ||
"value": [ | ||
"INFORMATION", | ||
"FAIL" | ||
], | ||
"path": { | ||
"dom": "/html[1]/body[1]/h6[4]", | ||
"aria": "/document[1]/heading[6]" | ||
}, | ||
"reasonId": "fail_no_accessible_name", | ||
"message": "Element <h6> with \"heading\" role has no accessible name", | ||
"messageArgs": [ | ||
"h6", | ||
"heading" | ||
], | ||
"apiArgs": [], | ||
"category": "Accessibility" | ||
}, | ||
{ | ||
"ruleId": "aria_accessiblename_exists", | ||
"value": [ | ||
"INFORMATION", | ||
"FAIL" | ||
], | ||
"path": { | ||
"dom": "/html[1]/body[1]/h6[5]", | ||
"aria": "/document[1]/heading[7]" | ||
}, | ||
"reasonId": "fail_no_accessible_name", | ||
"message": "Element <h6> with \"heading\" role has no accessible name", | ||
"messageArgs": [ | ||
"h6", | ||
"heading" | ||
], | ||
"apiArgs": [], | ||
"category": "Accessibility" | ||
}, | ||
{ | ||
"ruleId": "aria_accessiblename_exists", | ||
"value": [ | ||
"INFORMATION", | ||
"FAIL" | ||
], | ||
"path": { | ||
"dom": "/html[1]/body[1]/h6[6]", | ||
"aria": "/document[1]/heading[8]" | ||
}, | ||
"reasonId": "fail_no_accessible_name", | ||
"message": "Element <h6> with \"heading\" role has no accessible name", | ||
"messageArgs": [ | ||
"h6", | ||
"heading" | ||
], | ||
"apiArgs": [], | ||
"category": "Accessibility" | ||
}, | ||
{ | ||
"ruleId": "aria_accessiblename_exists", | ||
"value": [ | ||
"INFORMATION", | ||
"FAIL" | ||
], | ||
"path": { | ||
"dom": "/html[1]/body[1]/h6[7]", | ||
"aria": "/document[1]/heading[9]" | ||
}, | ||
"reasonId": "fail_no_accessible_name", | ||
"message": "Element <h6> with \"heading\" role has no accessible name", | ||
"messageArgs": [ | ||
"h6", | ||
"heading" | ||
], | ||
"apiArgs": [], | ||
"category": "Accessibility" | ||
} | ||
] | ||
}; | ||
</script> | ||
</body> | ||
|
||
</html> |
Oops, something went wrong.