Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(505)

Issue 1917943002: Accessible name calc should allow aria-labelledby to reference aria-hidden (Closed)

Created:
4 years, 8 months ago by dmazzoni
Modified:
4 years, 8 months ago
CC:
chromium-reviews, aboxhall, aboxhall+watch_chromium.org, nektar+watch_chromium.org, yuzo+watch_chromium.org, haraken, je_julie, dmazzoni+watch_chromium.org, dtseng+watch_chromium.org, blink-reviews, dmazzoni
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Accessible name calc should allow aria-labelledby to reference aria-hidden The new accessible name calculation improved compatibility overall but broke one specific case, where one element uses aria-labelledby (or aria-describedby) to reference a subtree that's explicitly aria-hidden. The correct thing to do here is ignore aria-hidden when an element is referenced explicitly. <input aria-labelledby="label"> <div id="label" aria-hidden="true">Hidden label</div> BUG=595494 Committed: https://crrev.com/8dacc7a16ffdee2d4af5a60f6f9079c22fd7399c Cr-Commit-Position: refs/heads/master@{#389798}

Patch Set 1 #

Total comments: 6

Patch Set 2 : Add more tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+105 lines, -2 lines) Patch
A third_party/WebKit/LayoutTests/accessibility/name-calc-aria-hidden.html View 1 1 chunk +99 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/accessibility/AXNodeObject.cpp View 1 chunk +6 lines, -2 lines 0 comments Download

Messages

Total messages: 21 (4 generated)
dmazzoni
4 years, 8 months ago (2016-04-25 17:45:46 UTC) #2
aboxhall
https://codereview.chromium.org/1917943002/diff/1/third_party/WebKit/LayoutTests/accessibility/name-calc-aria-hidden.html File third_party/WebKit/LayoutTests/accessibility/name-calc-aria-hidden.html (right): https://codereview.chromium.org/1917943002/diff/1/third_party/WebKit/LayoutTests/accessibility/name-calc-aria-hidden.html#newcode26 third_party/WebKit/LayoutTests/accessibility/name-calc-aria-hidden.html:26: }, "Aria-labelledby can get accessible text from aria-hidden subtree"); ...
4 years, 8 months ago (2016-04-25 18:21:26 UTC) #3
dmazzoni
https://codereview.chromium.org/1917943002/diff/1/third_party/WebKit/LayoutTests/accessibility/name-calc-aria-hidden.html File third_party/WebKit/LayoutTests/accessibility/name-calc-aria-hidden.html (right): https://codereview.chromium.org/1917943002/diff/1/third_party/WebKit/LayoutTests/accessibility/name-calc-aria-hidden.html#newcode26 third_party/WebKit/LayoutTests/accessibility/name-calc-aria-hidden.html:26: }, "Aria-labelledby can get accessible text from aria-hidden subtree"); ...
4 years, 8 months ago (2016-04-25 22:33:03 UTC) #4
aboxhall
https://codereview.chromium.org/1917943002/diff/1/third_party/WebKit/Source/modules/accessibility/AXNodeObject.cpp File third_party/WebKit/Source/modules/accessibility/AXNodeObject.cpp (right): https://codereview.chromium.org/1917943002/diff/1/third_party/WebKit/Source/modules/accessibility/AXNodeObject.cpp#newcode1658 third_party/WebKit/Source/modules/accessibility/AXNodeObject.cpp:1658: continue; On 2016/04/25 22:33:03, dmazzoni wrote: > On 2016/04/25 ...
4 years, 8 months ago (2016-04-25 22:43:43 UTC) #5
dmazzoni
https://codereview.chromium.org/1917943002/diff/1/third_party/WebKit/Source/modules/accessibility/AXNodeObject.cpp File third_party/WebKit/Source/modules/accessibility/AXNodeObject.cpp (right): https://codereview.chromium.org/1917943002/diff/1/third_party/WebKit/Source/modules/accessibility/AXNodeObject.cpp#newcode1658 third_party/WebKit/Source/modules/accessibility/AXNodeObject.cpp:1658: continue; On 2016/04/25 22:43:42, aboxhall wrote: > On 2016/04/25 ...
4 years, 8 months ago (2016-04-26 15:39:32 UTC) #6
aboxhall1
On 2016/04/26 15:39:32, dmazzoni wrote: > https://codereview.chromium.org/1917943002/diff/1/third_party/WebKit/Source/modules/accessibility/AXNodeObject.cpp > File third_party/WebKit/Source/modules/accessibility/AXNodeObject.cpp (right): > > https://codereview.chromium.org/1917943002/diff/1/third_party/WebKit/Source/modules/accessibility/AXNodeObject.cpp#newcode1658 > ...
4 years, 8 months ago (2016-04-26 15:49:48 UTC) #7
aboxhall1
lgtm
4 years, 8 months ago (2016-04-26 15:49:57 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1917943002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1917943002/20001
4 years, 8 months ago (2016-04-26 16:01:36 UTC) #11
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 8 months ago (2016-04-26 16:06:36 UTC) #12
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/8dacc7a16ffdee2d4af5a60f6f9079c22fd7399c Cr-Commit-Position: refs/heads/master@{#389798}
4 years, 8 months ago (2016-04-26 16:08:00 UTC) #14
nektarios
1. What if the target of an aria-labelledby or aria-describedby is a subtree that has ...
4 years, 8 months ago (2016-04-26 16:08:45 UTC) #15
dmazzoni
On Tue, Apr 26, 2016 at 9:08 AM <nektar@chromium.org> wrote: > 1. What if the ...
4 years, 8 months ago (2016-04-26 16:13:12 UTC) #16
dmazzoni
On Tue, Apr 26, 2016 at 9:08 AM <nektar@chromium.org> wrote: > 1. What if the ...
4 years, 8 months ago (2016-04-26 16:13:12 UTC) #17
chromium-reviews
2. What if the subtree defining the label has some nodes with display:none? > > ...
4 years, 8 months ago (2016-04-26 16:24:39 UTC) #18
blink-reviews
2. What if the subtree defining the label has some nodes with display:none? > > ...
4 years, 8 months ago (2016-04-26 16:24:40 UTC) #19
dmazzoni
On Tue, Apr 26, 2016 at 9:24 AM 'Nektarios Paisios' via Chromium-reviews < chromium-reviews@chromium.org> wrote: ...
4 years, 8 months ago (2016-04-26 17:02:01 UTC) #20
dmazzoni
4 years, 8 months ago (2016-04-26 17:02:02 UTC) #21
Message was sent while issue was closed.
On Tue, Apr 26, 2016 at 9:24 AM 'Nektarios Paisios' via Chromium-reviews <
chromium-reviews@chromium.org> wrote:

> 2. What if the subtree defining the label has some nodes with display:none?
>
> Should they also be ignored?
>>
>
> Yes, and we already have tests for this and for visibility:hidden too. We
> just didn't have any tests for aria-hidden.
>
> I thought that when calculating the accessible name, this change only
> checks for the aria-hidden attribute and ignores a child only if this
> attribute is set to true but doesn't ignore it in other cases, such as when
> its CSS display attribute is set to none.
>

The check for display:none and visibility:hidden is there too, just in a
slightly different part of the code. See
LayoutTests/accessibility/name-calc-visibility.html
for most of those tests, and see
AXObject::isHiddenForTextAlternativeCalculation
for the code that checks visibility:hidden and display:none.

-- 
You received this message because you are subscribed to the Google Groups
"Chromium-reviews" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to chromium-reviews+unsubscribe@chromium.org.

Powered by Google App Engine
This is Rietveld 408576698