Skip to the content
v1.0.1-beta.17

Accessibility

Scriviamo aims to meet the Web Content Accessibility Guidelines (WCAG) 2.2 at level AA, both in the editor itself and in the documents people write with it. This page says what is checked and how. The conformance report at the end is a draft, from automated testing and review without screen readers.

In the editor

  • Keyboard. Every toolbar tool, menu, dialog and the inspector work from the keyboard. Inside the document, the arrow keys move between blocks, Tab moves between table cells and columns, Shift-Command-P (Shift-Control-P) searches every command, and Escape closes menus and popovers. With the editor's keyboardControls option on, Tab reaches a selected picture's, video's or embed's resize handle, which resizes with the arrow keys, and a map, which moves with the arrow keys and zooms with + and −. Browsers don't say whether someone needs this, so an application turns it on from its own accessibility setting. Dialogs are native <dialog> elements, which keep focus inside until they close. Keyboard shortcuts lists every key.
  • Names. Toolbar buttons, menus, list boxes, checkboxes in checklists and forms, and radio buttons have names screen readers read. Code samples that scroll sideways can be reached with Tab and are named "Code".
  • Contrast. The interface takes its colors from Bootstrap's theme variables, so it follows a site's light or dark mode and meets contrast in both of Bootstrap's own themes.
  • Motion. Animations stop when the reader's system asks for reduced motion.
  • Right to left. The editor lays out Arabic, Hebrew and other right-to-left text, and the interface mirrors with it.

In documents

The accessibility checker, in the premium accessibility add-on, finds pictures without descriptions, headings that skip levels or have no text, link text that doesn't say where it leads, text with too little contrast, tables without a header row, and more, and fixes many of them in one step. See The accessibility checker below.

Exported HTML keeps the structure that assistive technology needs: real headings, lists and tables, alt text on pictures, <figure> and <figcaption>, the document's language and direction, MathML for formulas, and SVG with a name for charts and maps.

The accessibility checker

import {AccessibilityChecker} from "./dist/addons/scriviamo.accessibility.js"

let problems = AccessibilityChecker.check(editor)
await AccessibilityChecker.fixAll(editor)   // fixes what needs no answer from the user

Each problem has its rule, a severity ("error" or "warning"), a message, the WCAG success criterion it comes from, the block it's in, and, when it can be fixed for the user, fix(). The problems show in the inspector's Accessibility tab, and from the Check Accessibility tool. Add rules of your own with AccessibilityChecker.addRule(name, editor => [...]).

RuleFindsWCAGFix
image-altPictures without a description1.1.1Asks for one
gallery-altGallery pictures without a description1.1.1—
heading-order, heading-firstHeadings that skip a level, or a document that starts below level 21.3.1Moves the heading up
heading-emptyHeadings with no text1.3.1Makes it a paragraph
link-textLinks reading "click here", "more" and the like2.4.4—
contrastText colors under 4.5:1 against their background, or 3:1 for large text1.4.3Restores the default color
table-headerTables with no header row1.3.1Makes the first row the header
chart-titleCharts with no title1.1.1Asks for one
embed-titleEmbeds with no title4.1.2—
spacingEmpty paragraphs used for space1.3.1Removes the extra ones

How the editor is audited

Every test run checks the editor with axe-core against the WCAG 2.0, 2.1 and 2.2 A and AA rules: a document holding every block type, with the inspector showing and the Insert menu open, in Bootstrap's light and dark themes, and in Arabic, right to left. A violation fails the tests, so no release goes out with one. axe asks for colors over pictures and gradients to be checked by eye.

Conformance report (draft)

The format follows the WCAG section of the VPAT 2.5. "Supports" means the criterion was checked and met; "Needs manual review" means it depends on a person checking with assistive technology. Criteria that depend on the content people write, such as captions for their videos, are "Supports" where the editor gives authors what they need to meet them.

CriterionLevelConformanceRemarks
1.1.1 Non-text contentASupportsPictures, galleries and charts take descriptions; the checker finds missing ones; icons in the interface are hidden or named
1.2.1–1.2.5 Time-based mediaA, AAPartially supportsAudio and video play with the browser's controls; the editor has no captions or transcripts of its own
1.3.1 Info and relationshipsASupportsReal headings, lists, tables and figures in the editor and in exports
1.3.2 Meaningful sequenceASupportsReading order is document order
1.3.3 Sensory characteristicsASupports
1.3.4 OrientationAASupports
1.3.5 Identify input purposeAANeeds manual reviewForm blocks take autocomplete through their HTML
1.4.1 Use of colorASupportsTracked changes are underlined and struck through as well as colored
1.4.2 Audio controlASupportsNothing plays on its own
1.4.3 Contrast (minimum)AASupportsChecked with axe in both themes
1.4.4 Resize textAASupportsText scales with the browser
1.4.5 Images of textAASupports
1.4.10 ReflowAANeeds manual review
1.4.11 Non-text contrastAANeeds manual review
1.4.12 Text spacingAANeeds manual review
1.4.13 Content on hover or focusAANeeds manual reviewTooltips and popovers
2.1.1 KeyboardASupportsThe toolbar, menus, dialogs and inspector work from the keyboard; with keyboardControls on, pictures, video and embeds resize, and maps move and zoom, with keys, and the inspector's fields do the same either way; see Keyboard shortcuts
2.1.2 No keyboard trapASupportsEscape leaves menus and popovers; dialogs close with Escape
2.1.4 Character key shortcutsASupportsShortcuts use Command or Control
2.2.1 Timing adjustableASupports
2.2.2 Pause, stop, hideASupports
2.3.1 Three flashesASupports
2.4.1 Bypass blocksANot applicableThe editor is part of a page
2.4.2 Page titledANot applicableThe application titles its page
2.4.3 Focus orderANeeds manual review
2.4.4 Link purposeASupportsThe checker finds unclear link text
2.4.5 Multiple waysAANot applicable
2.4.6 Headings and labelsAASupports
2.4.7 Focus visibleAANeeds manual review
2.4.11 Focus not obscuredAANeeds manual reviewThe sticky toolbar
2.5.1 Pointer gesturesASupportsDragging blocks has menu commands as an alternative
2.5.2 Pointer cancellationASupports
2.5.3 Label in nameASupports
2.5.4 Motion actuationASupports
2.5.7 Dragging movementsAASupportsBlocks, outline sections, pictures and maps move by dragging; each also moves or resizes with keys, and with commands or inspector fields
2.5.8 Target sizeAANeeds manual reviewSmall toolbar buttons are 30 pixels
3.1.1 Language of pageANot applicableThe application sets its page's language
3.1.2 Language of partsAASupportsExports carry the document's direction
3.2.1–3.2.4 PredictableA, AASupports
3.2.6 Consistent helpANot applicable
3.3.1–3.3.4 Input assistanceA, AANeeds manual review
3.3.7 Redundant entryASupports
3.3.8 Accessible authenticationAANot applicable
4.1.2 Name, role, valueAPartially supportsInterface controls are named; editable blocks need testing with screen readers
4.1.3 Status messagesAANeeds manual reviewMessages and the dictation bubble use live regions