A scrollable code block or diagram cannot be scrolled with the keyboard
Categories
(Developer Infrastructure :: Source Documentation, defect)
Tracking
(firefox158 fixed)
| Tracking | Status | |
|---|---|---|
| firefox158 | --- | fixed |
People
(Reporter: dao, Assigned: dao)
References
(Blocks 1 open bug)
Details
Attachments
(1 external file)
firefox-source-docs renders wide content in scroll containers no keyboard user can reach: pre and code are not focusable, so the region scrolls by wheel or drag only, where WCAG 2.1.1 asks for keyboard operation of the same content.
On ipc/docs/ipdl.md, pre.mermaid reports tabIndex -1 and does not take focus even programmatically. A diagram has a partial escape hatch, since the mermaid extension's fullscreen button is a real button opening a scrollable modal; a code block has none.
The usual fix is tabindex="0" on the container that overflows, which wants a few lines of JS in docs/_addons/ for the diagrams and a theme-level answer for the code blocks, whose scroll containers predate bug 2071258.
| Assignee | ||
Comment 1•2 months ago
|
||
ipc/docs/ipdl.md is the page to build and open. Twenty of its forty scroll containers overflow at the 442px column a 982px window gives, and those twenty are the ones that take focus; widening the window until the column reaches 891px leaves two.
Updated•2 months ago
|
Comment 3•2 months ago
|
||
| bugherder | ||
Description
•