forked from LadybirdBrowser/ladybird
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
LibWeb: Support the ARIA “sectionheader” & “sectionfooter” roles
- Loading branch information
1 parent
203267f
commit 1b165d8
Showing
6 changed files
with
153 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
9 changes: 9 additions & 0 deletions
9
Tests/LibWeb/Text/expected/wpt-import/html-aam/roles-contextual.tentative.txt
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,9 @@ | ||
Harness status: OK | ||
|
||
Found 4 tests | ||
|
||
4 Pass | ||
Pass el-footer | ||
Pass el-footer-ancestormain | ||
Pass el-header | ||
Pass el-header-ancestormain |
36 changes: 36 additions & 0 deletions
36
Tests/LibWeb/Text/input/wpt-import/html-aam/roles-contextual.tentative.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,36 @@ | ||
<!doctype html> | ||
<html> | ||
<head> | ||
<title>Tentative: HTML-AAM Contextual-Specific Role Verification Tests</title> | ||
<script src="../resources/testharness.js"></script> | ||
<script src="../resources/testharnessreport.js"></script> | ||
<script src="../resources/testdriver.js"></script> | ||
<script src="../resources/testdriver-vendor.js"></script> | ||
<script src="../resources/testdriver-actions.js"></script> | ||
<script src="../wai-aria/scripts/aria-utils.js"></script> | ||
</head> | ||
<body> | ||
|
||
<!-- | ||
New sectionheader and sectionfooter roles. | ||
See https://github.com/w3c/aria/pull/1931 | ||
--> | ||
<nav> | ||
<footer data-testname="el-footer" aria-label="x" data-expectedrole="sectionfooter" class="ex">x</aside> | ||
</nav> | ||
<main> | ||
<footer data-testname="el-footer-ancestormain" data-expectedrole="sectionfooter" class="ex">x</footer> | ||
</main> | ||
<nav> | ||
<header data-testname="el-header" aria-label="x" data-expectedrole="sectionheader" class="ex">x</header> | ||
</nav> | ||
<main> | ||
<header data-testname="el-header-ancestormain" data-expectedrole="sectionheader" class="ex">x</header> | ||
</main> | ||
|
||
<script> | ||
AriaUtils.verifyRolesBySelector(".ex"); | ||
</script> | ||
|
||
</body> | ||
</html> |