make HTML 5 meter element accessible

NEW
Unassigned

Status

()

Core
Disability Access APIs
7 years ago
3 months ago

People

(Reporter: surkov, Unassigned)

Tracking

(Blocks: 2 bugs, {access})

Firefox Tracking Flags

(Not tracked)

Details

(URL)

(Reporter)

Description

7 years ago
Probably similar to progressmeter however HTML5 make difference between these controls. Should expose nsIAccessibleValue.
Blocks: 555985
No longer depends on: 555985

Comment 1

6 years ago
Mounir, are we exposing something for the low, high, and optimum attributes? Because there is currently no accessibility API to deal with these values. The rest looks vaguely similar to the progress element, indeed.

Comment 2

4 years ago
Firefox should expose the inner phrasing content of a meter element. I created a test case for that: http://hoffburg.at/bugreports/meter.html
(Reporter)

Comment 3

4 years ago
more examples: http://peter.sh/examples/?/html/meter-progress.html

Max, if it looks interesting please feel free to pick up this one.
Blocks: 887794
(Reporter)

Comment 4

4 years ago
(In reply to Marco Zehe (:MarcoZ) from comment #1)
> Mounir, are we exposing something for the low, high, and optimum attributes?
> Because there is currently no accessibility API to deal with these values.
> The rest looks vaguely similar to the progress element, indeed.

Color is changed from green to yellow when the value is out of low/high range. I'm curious what state the element has when its value is out of optimum range?

As alternative we could expose low/high/optimum as object attributes.
Flags: needinfo?(mounir)
The meter element is exposing the values of low/high/optimum:
http://www.whatwg.org/specs/web-apps/current-work/multipage/the-button-element.html#the-meter-element

Regarding the states, there is NS_EVENT_STATE_OPTIMUM, NS_EVENT_STATE_SUB_OPTIMUM and NS_EVENT_STATE_SUB_SUB_OPTIMUM. You can find the logic in HTMLMeterElement::GetOptimumState().
Flags: needinfo?(mounir)
(Reporter)

Comment 6

4 years ago
Ideas how to expose optimum states into accessibility API?

Comment 7

4 years ago
Can you explain how optimum, sub-optimum and sub-sub-optimum are represented visually? I don't follow this.

I think we're going to need new accessible states, but I was imagining low, optimum and high states based on my understanding of the spec. (Object attributes could be used, but I think they should probably be boolean for the current value, not numeric.)
(Reporter)

Comment 8

4 years ago
(In reply to James Teh [:Jamie] from comment #7)
> Can you explain how optimum, sub-optimum and sub-sub-optimum are represented
> visually? I don't follow this.

by default green, yellow and red colors, I believe people can CSS style them as they want

> I think we're going to need new accessible states, but I was imagining low,
> optimum and high states based on my understanding of the spec. (Object
> attributes could be used, but I think they should probably be boolean for
> the current value, not numeric.)

yep, they are boolean, states sound like a right way
I thought of bug 687202 to increase the a11y of the meter element but I never finished the patch. Would that be worth it?
(Reporter)

Comment 10

4 years ago
(In reply to Mounir Lamouri (:mounir) from comment #9)
> I thought of bug 687202 to increase the a11y of the meter element but I
> never finished the patch. Would that be worth it?

sure, the bug seems to be a good step forward to improve a11y and usability. this bug is different, it's about how to expose the control through a11y APIs.
(Reporter)

Updated

4 years ago
Depends on: 923199
(Reporter)

Updated

4 years ago
Blocks: 923199
No longer depends on: 923199
(Reporter)

Updated

3 years ago
Blocks: 956711
(Reporter)

Comment 11

3 years ago
AKT part is done (https://bugzilla.gnome.org/show_bug.cgi?id=684576), we need to implement it.

Curious, if Yurii wants to pick it up ;)

Comment 12

11 months ago
any update on this?
Flags: needinfo?(mzehe)
Flags: needinfo?(dbolter)

Comment 13

10 months ago
I have no new data on this.
Flags: needinfo?(mzehe)

Updated

3 months ago
Flags: needinfo?(dbolter)
You need to log in before you can comment on or make changes to this bug.