Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
AXAPI: Expose aria-description in accessibilityCustomContent
`aria-description` is exposed in accessibilityCustomContent with label="description" beginning with macOS 11. Before macOS 11: `aria-description` will be exposed in AXHelp, which is how it was exposed before this change. Specification: w3c/core-aam#142 Change-Id: Iddedce1b696e05542628fa3d471eac2f63c78d0f Fixed: 1350145 Cq-Include-Trybots: luci.chromium.try:mac10.13-blink-rel,mac10.15-blink-rel Change-Id: Iddedce1b696e05542628fa3d471eac2f63c78d0f Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4015695 Reviewed-by: Peter Kasting <pkasting@chromium.org> Reviewed-by: Mark Mentovai <mark@chromium.org> Commit-Queue: Valerie Young <spectranaut@igalia.com> Reviewed-by: Aaron Leventhal <aleventhal@chromium.org> Cr-Commit-Position: refs/heads/main@{#1084927}
- Loading branch information
1 parent
110fb92
commit 1c4e63e
Showing
20 changed files
with
177 additions
and
24 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
2 changes: 1 addition & 1 deletion
2
content/test/data/accessibility/aria/aria-busy-expected-mac.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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
AXWebArea AXRoleDescription='HTML content' | ||
++AXGroup AXSubrole=AXApplicationLog AXARIABusy=1 AXDescription='Busy log' AXRoleDescription='log' | ||
++AXGroup AXSubrole=AXApplicationLog AXDescription='Not-busy log' AXRoleDescription='log' | ||
++AXGroup AXARIABusy=1 AXHelp='plain div' AXRoleDescription='group' | ||
++AXGroup AXARIABusy=1 AXRoleDescription='group' |
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
4 changes: 2 additions & 2 deletions
4
content/test/data/accessibility/aria/aria-description-expected-mac.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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
AXWebArea | ||
++AXGroup AXDescription='description' AXHelp='Text-description' | ||
++AXGroup AXDescription='both' AXHelp='Description from describedby' | ||
++AXGroup AXDescription='description' | ||
++AXGroup AXDescription='both' | ||
++AXGroup AXSubrole=AXUserInterfaceTooltip AXTitle='Description from describedby' | ||
++++AXStaticText AXValue='Description from describedby' |
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
16 changes: 8 additions & 8 deletions
16
content/test/data/accessibility/aria/aria-details-roles-expected-mac.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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
<!-- | ||
@WIN-ALLOW:description* | ||
@MAC-ALLOW:AXHelp | ||
--> | ||
<!DOCTYPE html> | ||
<html> | ||
|
4 changes: 4 additions & 0 deletions
4
.../test/data/accessibility/mac/description/aria-description-in-axcustomcontent-expected.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,4 @@ | ||
div.accessibilityCustomContent[0].label='description' | ||
div.accessibilityCustomContent[0].value='Text-description' | ||
div.accessibilityAttributeValue(AXHelp)=NULL | ||
div_with_tooltip.accessibilityAttributeValue(AXHelp)='Description from describedby' |
18 changes: 18 additions & 0 deletions
18
content/test/data/accessibility/mac/description/aria-description-in-axcustomcontent.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,18 @@ | ||
<!-- | ||
@SCRIPT: | ||
div.accessibilityCustomContent[0].label | ||
div.accessibilityCustomContent[0].value | ||
div.accessibilityAttributeValue(AXHelp) | ||
div_with_tooltip.accessibilityAttributeValue(AXHelp) | ||
--> | ||
<!-- | ||
Note, this test will only run when macOS is greater or equal to 11. The purpose of the test is to show that AXHelp DOES NOT surface the aria-description string beginning with macOS 11 (instead, it can be found in AXCustomContent). | ||
--> | ||
<!DOCTYPE html> | ||
<html> | ||
<body> | ||
<div id="div" aria-label="description" aria-description="Text-description" ></div> | ||
<div id="div_with_tooltip" aria-label="both" aria-description="describedby overrides description" aria-describedby="desc1" ></div> | ||
<div role="tooltip" id="desc1">Description from describedby</div> | ||
</body> | ||
</html> |
2 changes: 2 additions & 0 deletions
2
content/test/data/accessibility/mac/description/aria-description-in-axhelp-expected.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,2 @@ | ||
div.accessibilityAttributeValue(AXHelp)='Text-description' | ||
div_with_tooltip.accessibilityAttributeValue(AXHelp)='Description from describedby' |
16 changes: 16 additions & 0 deletions
16
content/test/data/accessibility/mac/description/aria-description-in-axhelp.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,16 @@ | ||
<!-- | ||
@SCRIPT: | ||
div.accessibilityAttributeValue(AXHelp) | ||
div_with_tooltip.accessibilityAttributeValue(AXHelp) | ||
--> | ||
<!-- | ||
Note, this test will only run when macOS is less than 11, and the purpose of the test is to show that AXHelp DOES surface the aria-description string. | ||
--> | ||
<!DOCTYPE html> | ||
<html> | ||
<body> | ||
<div id="div" aria-label="description" aria-description="Text-description" ></div> | ||
<div id="div_with_tooltip" aria-label="both" aria-description="describedby overrides description" aria-describedby="desc1" ></div> | ||
<div role="tooltip" id="desc1">Description from describedby</div> | ||
</body> | ||
</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
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
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