Closed
Bug 1540180
Opened 6 years ago
Closed 6 years ago
Accessibility role of `<input type="image"> becomes "text container" when styled as `display: inline-block;`
Categories
(Core :: Disability Access APIs, defect, P2)
Tracking
()
RESOLVED
FIXED
mozilla68
Tracking | Status | |
---|---|---|
firefox68 | --- | fixed |
People
(Reporter: mbrodesser-Igalia, Assigned: emilio)
References
Details
Attachments
(2 files)
Reproduction steps:
-
Add
display: inline-block;
to input elements (done by the attached patch). -
Run
./mach test accessible/tests/mochitest/elm/test_HTMLSpec.html
, it'll fail.
Expected result: the test passes and the form has a child "pushbutton".
Actual result: the test fails and the form has a child "text container".
Reporter | ||
Comment 1•6 years ago
|
||
Fails on Nightly 68.0a1, but probably also earlier versions.
Assignee | ||
Comment 2•6 years ago
|
||
Easier repro is just opening data:text/html,<input type="image" style="display: inline-block"><input type="image">
, and see how the role differs in the accessibility inspector.
Ethan, Alex, do you know off-hand what's the code which deals with this? I'm happy to submit a patch to fix it.
Flags: needinfo?(surkov.alexander)
Flags: needinfo?(eitan)
Assignee | ||
Comment 3•6 years ago
|
||
Assignee | ||
Updated•6 years ago
|
Assignee: nobody → emilio
Flags: needinfo?(surkov.alexander)
Flags: needinfo?(eitan)
Assignee | ||
Comment 4•6 years ago
|
||
Pushed by ealvarez@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/b5298ae13542
The role of a broken input[type="image"] doesn't depend on its display value. r=surkov,eeejay
Updated•6 years ago
|
Priority: -- → P2
Comment 6•6 years ago
|
||
bugherder |
Status: NEW → RESOLVED
Closed: 6 years ago
status-firefox68:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla68
You need to log in
before you can comment on or make changes to this bug.
Description
•