Closed
Bug 559770
Opened 15 years ago
Closed 5 years ago
make HTML 5 meter element accessible
Categories
(Core :: Disability Access APIs, defect)
Core
Disability Access APIs
Tracking
()
RESOLVED
DUPLICATE
of bug 1460378
People
(Reporter: surkov, Unassigned)
References
(Blocks 2 open bugs, )
Details
(Keywords: access)
Probably similar to progressmeter however HTML5 make difference between these controls. Should expose nsIAccessibleValue.
Updated•14 years ago
|
Comment 1•14 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•11 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•11 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: 2013q3a11y
Reporter | ||
Comment 4•11 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)
Comment 5•11 years ago
|
||
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•11 years ago
|
||
Ideas how to expose optimum states into accessibility API?
Comment 7•11 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•11 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
Comment 9•11 years ago
|
||
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•11 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•11 years ago
|
Depends on: 2013q4a11y
Reporter | ||
Updated•11 years ago
|
Blocks: 2013q4a11y
No longer depends on: 2013q4a11y
Reporter | ||
Comment 11•11 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 ;)
Updated•8 years ago
|
Flags: needinfo?(dbolter)
Reporter | ||
Comment 14•7 years ago
|
||
fyi, ATK and IA2 both have ROLE_LEVEL_BAR now (we need to update their IDLs to pick up the changes)
Comment 16•5 years ago
|
||
Found this in my sick leave backlog. Jamie, what plans do we have for this?
Flags: needinfo?(mzehe) → needinfo?(jteh)
Comment 17•5 years ago
|
||
There's more discussion on this in bug 1460378. Even though that bug was filed later, I'm closing this one as a duplicate because there's more relevant discussion (and open questions) there.
Status: NEW → RESOLVED
Closed: 5 years ago
Flags: needinfo?(jteh)
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•