-
Notifications
You must be signed in to change notification settings - Fork 6.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle nodeless break opportunities in AXPosition::FromPosition
The accessible text exposed to assistive technologies comes from the InlineTextBox content; characters representing break opportunities are excluded. If the break opportunity has an associated node, such as <wbr>, AXPosition is able to connect that character's content offsets with the "ignored" accessibility object, and ensure the text offsets exposed to ATs correspond to the accessible text. It needs to do the same for break opportunities which lack an associated node, such as those inserted at the end of preserved leading spaces. Create AXPosition::AdjustContentOffsetForNonContiguousMappings which identifies nodeless break opportunities and adjusts the accessible content offset accordingly. AX-Relnotes: Screen readers should no longer present the wrong character during caret navigation if "white-space: pre-wrap" is applied to an element with leading spaces. Bug: 1442835 Change-Id: I914d051b942dcd50de55674816e32cfbf578e5a6 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4543184 Reviewed-by: Koji Ishii <kojii@chromium.org> Commit-Queue: Joanmarie Diggs <jdiggs@igalia.com> Reviewed-by: Benjamin Beaudry <benjamin.beaudry@microsoft.com> Cr-Commit-Position: refs/heads/main@{#1150216}
- Loading branch information
Showing
3 changed files
with
98 additions
and
6 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