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

Issue 738733005: Input type "number" is not exposed in Acc layer

Created:
6 years, 1 month ago by shreeramk
Modified:
3 years, 9 months ago
Reviewers:
dmazzoni
CC:
chromium-reviews, plundblad+watch_chromium.org, aboxhall+watch_chromium.org, jam, yuzo+watch_chromium.org, darin-cc_chromium.org, dmazzoni+watch_chromium.org, dtseng+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Input type "number" is not exposed in Acc layer According to latest editor's draft http://rawgit.com/w3c/html-api-map/master/index.html input type number should have MSAA+IA2 Role as ROLE_SYSTEM_SPINBUTTON and AXRole as AXIncrementor and AXRoleDescription as "stepper". This CL depends on https://codereview.chromium.org/718403002/ and https://codereview.chromium.org/718433002/ BUG=385014

Patch Set 1 #

Patch Set 2 : updating expectations #

Patch Set 3 : including input-file #

Patch Set 4 : uploading expectations for input-file.html #

Patch Set 5 : #

Total comments: 5

Patch Set 6 : rebasing #

Unified diffs Side-by-side diffs Delta from patch set Stats (+253 lines, -63 lines) Patch
M content/browser/accessibility/dump_accessibility_tree_browsertest.cc View 1 2 3 4 5 3 chunks +6 lines, -4 lines 0 comments Download
A + content/test/data/accessibility/html/input-number.html View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
A content/test/data/accessibility/html/input-number-expected-android.txt View 1 2 3 4 5 1 chunk +6 lines, -0 lines 0 comments Download
A content/test/data/accessibility/html/input-number-expected-mac.txt View 1 2 3 4 5 1 chunk +6 lines, -0 lines 0 comments Download
A content/test/data/accessibility/html/input-number-expected-win.txt View 1 2 3 4 5 1 chunk +6 lines, -0 lines 0 comments Download
M content/test/data/accessibility/html/input-types.html View 1 2 3 4 5 2 chunks +7 lines, -1 line 0 comments Download
M content/test/data/accessibility/html/input-types-expected-android.txt View 1 2 3 4 5 3 chunks +21 lines, -1 line 0 comments Download
M content/test/data/accessibility/html/input-types-expected-mac.txt View 1 2 3 4 5 1 chunk +112 lines, -49 lines 0 comments Download
M content/test/data/accessibility/html/input-types-expected-win.txt View 1 2 3 4 5 3 chunks +64 lines, -1 line 0 comments Download
M content/test/data/accessibility/html/output-expected-android.txt View 1 2 3 4 5 1 chunk +8 lines, -2 lines 0 comments Download
M content/test/data/accessibility/html/output-expected-mac.txt View 1 2 3 4 5 1 chunk +8 lines, -2 lines 0 comments Download
M content/test/data/accessibility/html/output-expected-win.txt View 1 2 3 4 5 1 chunk +8 lines, -2 lines 0 comments Download

Messages

Total messages: 12 (2 generated)
shreeramk
Please review. Thanks!!
6 years ago (2014-11-27 05:31:50 UTC) #2
dmazzoni
The AX trees for input type=number aren't right. Can you check what Firefox does? https://codereview.chromium.org/738733005/diff/80001/content/test/data/accessibility/input-number-android-expected.txt ...
6 years ago (2014-11-27 07:33:41 UTC) #3
shreeramk
AViewer: Chrome: - document - body - spin box - spin box - push button ...
6 years ago (2014-11-27 07:57:07 UTC) #4
dmazzoni
On Wed, Nov 26, 2014 at 11:57 PM, <shreeram.k@samsung.com> wrote: > Firefox: > > - ...
6 years ago (2014-11-27 08:13:34 UTC) #5
shreeramk
I got the reason why the child is having spinbuttonrole. void AXRenderObject::addTextFieldChildren() { Node* node ...
5 years, 11 months ago (2015-01-07 05:22:12 UTC) #6
dmazzoni
OK, I just checked it out in Safari, and the spec is wrong. Could you ...
5 years, 11 months ago (2015-01-07 19:21:58 UTC) #7
shreeramk
On 2015/01/07 19:21:58, dmazzoni wrote: > OK, I just checked it out in Safari, and ...
5 years, 11 months ago (2015-01-08 05:40:45 UTC) #8
dmazzoni
> > This is the latest spec http://rawgit.com/w3c/aria/ > master/html-aam/html-aam.html > where input type number ...
5 years, 11 months ago (2015-01-08 17:15:18 UTC) #9
shreeramk
> On Mac, we should have an AXTextField with a child of AXIncrementor. I think ...
5 years, 11 months ago (2015-01-08 18:58:49 UTC) #10
dmazzoni
5 years, 11 months ago (2015-01-08 19:18:34 UTC) #11
On Thu, Jan 8, 2015 at 10:58 AM, <shreeram.k@samsung.com> wrote:

> On Mac, we should have an AXTextField with a child of AXIncrementor.
>>
>
> I think I got confused with this statement. I referred it in the opposite
> sense
> because of the word 'of' in above statement.
>

Sorry. To be more clear, what Mac wants is a AXTextField, and that text
field has a child AXIncrementor - not the other way around.

On Mac, an AXIncrementor is just a pair of buttons, it's not a text field.


> But, as you said in last comment
>
>  A "spin control" is a combination of a text field plus buttons to increase
>> or decrease the value. A "spin button" is just the increment/decrement
>> buttons
>>
>
> Then the AX tree/heirarchy would be something like this. Isn't?
>
> spincontrol
>   - text field
>   - button
>   - button
>
> ROLE_SYSTEM_SPIN_BUTTON
>     ROLE_SYSTEM_TEXT
>     ROLE_SYSTEM_PUSHBUTTON
>     ROLE_SYSTEM_PUSHBUTTON
>
>
>
> FF follows this(aviewer)
>
> - spin box
>       - editable text
>       - push button
>       - push buttom


Yes, it's confusing because on Windows, ROLE_SYSTEM_SPINBUTTON is a valid
role for the whole "spin control", but on Mac, there's no equivalent role,
but there's a role of AXIncrementor that refers to just the buttons, not
the whole control.

We could try to do something similar to Firefox, but that'd require Blink
changes too.



>
>
>
> https://codereview.chromium.org/738733005/
>
> To unsubscribe from this group and stop receiving emails from it, send an
> email to chromium-reviews+unsubscribe@chromium.org.
>

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