Closed Bug 1211117 Opened 9 years ago Closed 6 years ago

[Browser] Capitalize text using CSS instead of using capital letters

Categories

(Firefox OS Graveyard :: Gaia::Browser, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: julienw, Unassigned)

References

Details

(Keywords: access)

When using the browser app with the screen reader, the short words in capital letters are spelled instead of read as a word. For example "TOP SITES" is spelt as "Te Oh Pe Sites".

The reason is that the text is written in the markup "TOP SITES" instead of for example "Top sites" with a CSS style "text-transform: capitalize".

See also http://webaim.org/techniques/fonts/#caps
Blocks: gaiaa11y
We should use a separate string for a11y, written in lower case (e.g. "Top sites") and keep the current string for the UI, because using text-transform is against l10n best practices.

https://developer.mozilla.org/en-US/docs/Mozilla/Localization/Localization_content_best_practices#CSS_issues
Got it, thanks. Then do you think that adding an aria label would be the solution ?
(In reply to Julien Wajsberg [:julienw] (away Oct 1st, 2nd) from comment #0)
> When using the browser app with the screen reader, the short words in
> capital letters are spelled instead of read as a word. For example "TOP
> SITES" is spelt as "Te Oh Pe Sites".
> 
> The reason is that the text is written in the markup "TOP SITES" instead of
> for example "Top sites" with a CSS style "text-transform: capitalize".
> 
> See also http://webaim.org/techniques/fonts/#caps

I think this is due to the current speech synthesis engine we use. This might change when we switch to a different one. I would suggest not having separate a11y string as an alternative for existing strings.
I don't think we can block 2.5 for this.
blocking-b2g: 2.5? → ---
Firefox OS is not being worked on
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.