Open
Bug 1468960
Opened 7 years ago
Updated 2 years ago
IAccessibleText does not expose text direction attribute
Categories
(Core :: Disability Access APIs, defect, P3)
Tracking
()
NEW
People
(Reporter: mike.hill, Unassigned, Mentored)
References
(Blocks 1 open bug)
Details
If you have text or content with RTL layout,which is typically used for RTL language layout such as Arabic or Hebrew.
<div dir="RTL"> ...
or css style { direction:rtl; }
This attribute is not exposed through the IAccessibleText interface. This makes it difficult or impossible for a screen reader to figure out line breaks correctly and may impact the reading order for when you have mixed LTR and RTL text, especially if the web site has used a separate <span> for each word.
Chrome exposes this as a "writing-mode" custom attribute
Comment 1•7 years ago
|
||
besides CSS stuff we should support HTML elements like bdi.
Supporting this attribute is relatively easy, all you need is to implement a text attribute class (see https://dxr.mozilla.org/mozilla-central/source/accessible/base/TextAttrs.h?q=LangTextAttr&redirect_type=direct#198 as example). Not sure, if touch that anytime soon, but patches are welcome.
Blocks: texta11y
Mentor: surkov.alexander
Updated•7 years ago
|
Priority: -- → P3
Comment 2•6 years ago
|
||
Can I take up this issue?
How do I get started on this?
Flags: needinfo?(surkov.alexander)
Comment 3•6 years ago
|
||
(In reply to saijatin28 from comment #2)
Can I take up this issue?
How do I get started on this?
I recommend to start from comment #1 read related code, here's updated link https://searchfox.org/mozilla-central/source/accessible/base/TextAttrs.h#187, just implement writing-mode text attribute by example. Make sure to add a test https://searchfox.org/mozilla-central/source/accessible/tests/mochitest/textattrs/test_general.html
Flags: needinfo?(surkov.alexander)
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•