New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 650440 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Closed: Sep 2016
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: All
Pri: 1
Type: Bug-Regression
Team-Accessibility

Blocking:
issue 638701



Sign in to add a comment

Accessible bounding box is wrong for multiple lines of text

Project Member Reported by dmazz...@chromium.org, Sep 26 2016

Issue description

Simplest repro:

data:text/html,Line 1<br>Line 2

Visit the individual lines using a screen reader that shows the outline of the bounding box, like ChromeVox Next on Chrome OS, or VoiceOver on Mac OS X. It's correct for the first line but not the second line.




 
Components: UI>Accessibility
Owner: dmazz...@chromium.org
Project Member

Comment 2 by bugdroid1@chromium.org, Sep 28 2016

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/dbdcf389f7e2055c8c986c5ccaec6c46180ee19b

commit dbdcf389f7e2055c8c986c5ccaec6c46180ee19b
Author: dmazzoni <dmazzoni@chromium.org>
Date: Wed Sep 28 18:06:27 2016

Fix a case where the accessible bounding box of an inline text box was wrong.

The local bounds of an inline text box is relative to the same box as its
LayoutText, not relative to the LayoutText itself. Subtract the LayoutText
origin from the InlineTextBox coordinates and add some new tests to cover
this case.

BUG= 650440 

Review-Url: https://codereview.chromium.org/2372823002
Cr-Commit-Position: refs/heads/master@{#421568}

[modify] https://crrev.com/dbdcf389f7e2055c8c986c5ccaec6c46180ee19b/content/browser/accessibility/browser_accessibility.cc
[modify] https://crrev.com/dbdcf389f7e2055c8c986c5ccaec6c46180ee19b/third_party/WebKit/LayoutTests/accessibility/bounds-calc.html
[add] https://crrev.com/dbdcf389f7e2055c8c986c5ccaec6c46180ee19b/third_party/WebKit/LayoutTests/accessibility/inline-text-bounds-for-range-br.html
[modify] https://crrev.com/dbdcf389f7e2055c8c986c5ccaec6c46180ee19b/third_party/WebKit/Source/modules/accessibility/AXInlineTextBox.cpp

Status: Fixed (was: Started)
Blocking: 638701

Comment 5 Deleted

Tested the issue on windows 10 and Mac 10.11.6 using chrome dev version #55.0.2880.0 and version #55.0.2871.0 in order to compare the behavior in two builds as per the comment #0. 

Observed that the behavior of issue was same in both the builds.

Following are the steps followed to reproduce the issue.
----------
1. Created a sample html file having multiple lines as per comment #0.
2. Added chromeVox extension.
3. Opened the sample html file in chrome browser and visited individual lines.
4. Observed that the screen reader read the lines as Line1 line2, which was same behavior for both the above mentioned builds.

Attaching screencast for reference.

dmazzoni@ - Could you please verify the screencast and let us know if anything missed from our side.

Note:: Issue tested on 55.0.2879.0 for Linux as the 55.0.2880.0 build got failed for linux due to issue 652581.
Adding the screencast
650440.mp4
288 KB View Download

Sign in to add a comment