There is 1 comment.
 
 
XWiki Platform / cid:jira-generated-image-avatar-45bc2476-1716-422e-a819-012426c434c0 XWIKI-20909 Open

Code macro scroll controls are not keyboard accessible

 
View issue   ยท   Add comment
 

1 comment

 
cid:jira-generated-image-avatar-bd2ff759-45a9-410c-8005-c2348e98ab3a Charpentier Lucas on 13/Oct/26 11:42
 

Status as of October 2026:

  • Chrome (since v132) and Firefox now make scrollable regions keyboard focusable on their own, so the code macro box can be scrolled with the keyboard there without any change in XWiki.
  • Safari still doesn't, see WebKit bug 190870, open since 2018 and untouched since 2023.
  • axe-core acknowledged this in 4.11.2: the scrollable-region-focusable rule now only targets Safari ("Ensure elements that have scrollable content are accessible by keyboard in Safari").
  • In the latest WCAG build (Environment Tests master #1402), this rule is reported only twice, as warnings, both in PDFExportIT: codeMacro and autoScaleTable. The second one is a wide table, not the code macro.

Working around it in XWiki would mean adding JavaScript that makes every box focusable when it overflows, re-evaluated when the window is resized, to compensate for a browser bug, which was already considered overkill above. So I'll close this as Won't Fix once https://github.com/xwiki/xwiki-platform/pull/4460 is merged. That PR skips the WCAG validation on the 2 test pages, with a comment pointing to the WebKit bug so the workaround can be dropped once Safari fixes it.