New issue
Advanced search Search tips

Issue 632453 link

Starred by 6 users

Issue metadata

Status: Verified
Owner:
Closed: Nov 2016
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: All
Pri: 2
Type: Bug
Team-Accessibility



Sign in to add a comment

Chrome repeats a letter in the accessible name calculation whenever a first-letter style is applied

Reported by bbri...@microsoft.com, Jul 28 2016

Issue description

What steps will reproduce the problem?
(1) https://jsfiddle.net/boggydigital/9fuLg3s5/

What is the expected output?

Computed accessible name for header element is "The accessible name..."

What do you see instead?

"TThe accessible name..."

Doesn't repro in Edge, Firefox. Both expose "T" letter as anonymous text element under the header as expected.
 
Noticed in Safari TP 10 release notes that similar looking issue in WebKit was recently fixed https://trac.webkit.org/changeset/203694/
Components: UI>Accessibility
Labels: Hotlist-Interop
Bulk-adding Hotlist-Interop to bugs filed by other browser vendors based on the summary.  Feel free to remove if this issue doesn't actually reflect a difference in behavior between engines.
 Issue 538116  has been merged into this issue.

Comment 5 by dk...@chromium.org, Oct 24 2016

Cc: aboxhall@chromium.org
Dominic, Alice - could one of you take a look for triage? 
Dominic, Alice, could you please help triage this Hotlist-Interop issue?
Cc: e...@chromium.org
Status: Available (was: Untriaged)
Looked into this, and it looks like we need to do some special tree traversal to walk the FirstLetterPseudoElement layout object correctly. +eae for more thoughts.

Comment 8 by e...@chromium.org, Nov 24 2016

Cc: kojii@chromium.org
Components: Blink>Layout
Labels: -Pri-3 Pri-2

Comment 9 by kojii@chromium.org, Nov 24 2016

Owner: kojii@chromium.org
Status: Assigned (was: Available)
I can take a look. Thank you Bogdan for the WebKit change.
kojii@ - feel free to ping me to chat about a11y tree code if you like!

Comment 11 by kojii@chromium.org, Nov 25 2016

Thank you aboxhall@, WIP here https://codereview.chromium.org/2524313002/

Comment 12 by kojii@chromium.org, Nov 28 2016

Components: Blink>Focus

Comment 13 by kojii@chromium.org, Nov 28 2016

Components: -Blink>Focus
Project Member

Comment 14 by bugdroid1@chromium.org, Nov 28 2016

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

commit de49a2b1783ddecd7c1785287f76a4bbe468fdc2
Author: kojii <kojii@chromium.org>
Date: Mon Nov 28 14:56:39 2016

Fix AXLayoutObject not to add duplicated children for CSS first-letter

This patch fixes AXLayoutObject not to add first-letter pseudo elements
twice in the accessibility tree.

Similar fix to the one in WebKit[1], but the condition was changed only
for first-letter pseudo element because of the difference in the layout
tree structure.

[1] https://trac.webkit.org/changeset/203694/

BUG= 632453 

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

[add] https://crrev.com/de49a2b1783ddecd7c1785287f76a4bbe468fdc2/third_party/WebKit/LayoutTests/accessibility/css-first-letter-children.html
[modify] https://crrev.com/de49a2b1783ddecd7c1785287f76a4bbe468fdc2/third_party/WebKit/LayoutTests/accessibility/first-letter-text-transform-causes-crash-expected.txt
[modify] https://crrev.com/de49a2b1783ddecd7c1785287f76a4bbe468fdc2/third_party/WebKit/Source/modules/accessibility/AXLayoutObject.cpp

Comment 15 by kojii@chromium.org, Nov 28 2016

Status: Fixed (was: Assigned)
Status: Verified (was: Fixed)
Verified the fix on Version 57.0.2939.1 canary SyzyASan

Thank you Koji and Alice!

Sign in to add a comment