# Accessibility conformance report

> WCAG 2.2 level A and AA success criteria for Birch UI Document Editor, each marked as passing, partial or not tested, with the test behind every claim.

This report covers the editor as it is drawn by `createDocumentEditor` with the default options, in the bundled light and dark themes. It lists every WCAG 2.2 success criterion at level A and AA and says how the editor stands against it.

Read the limits first:

- **No screen-reader session was run.** Nobody has used the editor with NVDA, JAWS, VoiceOver, TalkBack or Narrator for this report. What is checked is what browsers expose: roles, names, states and relationships in the accessibility tree, focus order, and the text of live regions. A criterion marked *passes* means the automated checks pass, not that a person using assistive technology confirmed it.
- **Automated checks** are axe-core 4 with the WCAG 2.0, 2.1 and 2.2 A and AA rule sets, accessibility-tree snapshots, and keyboard-only scripts. They run in Chrome and Firefox. Safari was not tested.
- **Your content is yours.** Alternative text for pictures, heading structure, link text and the language of a document come from the document. The editor provides the means; this report does not cover what people write with it.

Status words: **Passes** (the named test checks it), **Partial** (some of it holds; the note says what does not), **Not tested** (nothing checks it, so no claim is made), **Not applicable** (the editor has no such content).

## Semantics inside the editing surface

The page is a `contenteditable` region with `role="textbox"` and `aria-multiline="true"`. Inside it:

| Content | Exposed as |
| --- | --- |
| Pages | Each page frame is `role="group"` with `aria-roledescription="page"` and the name *Page N of M*. The frames hold the headers, footers and footnotes of the page. The text itself is one continuous flow, so it is not nested inside the page groups; the page of the cursor is announced when it changes |
| Sections | Announced with the page (*Page 3 of 9, section 2*) when the cursor crosses a section break |
| Headings | `h1` to `h6` |
| Lists | `ul` and `ol` with `role="list"`, items with `role="listitem"`. Numbers and bullets are generated content |
| Tables | `table`, `tr`, `th` and `td`; the cursor's row and column are announced |
| Pictures | `img` with the alternative text of the picture |
| Footnotes | `role="doc-footnote"` in the note list of the web layout. In the page layout the notes are in the page group of their page |
| Comments | The commented text carries `aria-details` pointing to a description with the author, the comment and its replies. The card in the Comments list (`role="listitem"`) has the same text |
| Tracked changes | `ins` and `del` elements with `aria-details` pointing to a description with the author and a summary of the change; author and date are announced when the cursor enters a change |
| Blocked links | `role="link"` with the description *blocked link*; the address is announced |

`e2e/tests/document-a11y-tree.spec.ts` asserts these in Chrome and Firefox.

## Perceivable

| Criterion | Level | Status | Evidence and notes |
| --- | --- | --- | --- |
| 1.1.1 Non-text content | A | Partial | Buttons, toolbar controls and pictures with alternative text are named (axe, `document-a11y.spec.ts`). A picture without alternative text in a document is exposed without a name; the Alt text dialog sets it |
| 1.2.1 to 1.2.5 Time-based media | A, AA | Not applicable | The editor plays no audio or video |
| 1.3.1 Info and relationships | A | Partial | Headings, lists, tables, comments and tracked changes are exposed as above. Columns, text boxes and floating pictures are positioned visually and read in document order. Table header cells are `th` only for rows marked as header rows |
| 1.3.2 Meaningful sequence | A | Passes | DOM order is document order (`document-a11y-tree.spec.ts`). Headers, footers and footnotes come after the text, in the page groups |
| 1.3.3 Sensory characteristics | A | Passes | Instructions in the interface do not rely on shape, colour or position |
| 1.3.4 Orientation | AA | Passes | No orientation lock |
| 1.3.5 Identify input purpose | AA | Not applicable | No fields collect information about the user |
| 1.4.1 Use of colour | A | Partial | Tracked insertions are underlined and deletions struck through as well as coloured; comments have a margin card. Each reviewer's colour is the only visual cue to *who* made a change; the author is in the tooltip, the balloon and the announcement |
| 1.4.2 Audio control | A | Not applicable | |
| 1.4.3 Contrast (minimum) | AA | Passes | axe colour-contrast on the interface in both themes. Text colours chosen in a document are the author's |
| 1.4.4 Resize text | AA | Passes | The interface follows browser zoom to 200%; the page has its own zoom control |
| 1.4.5 Images of text | AA | Passes | The interface uses text and SVG icons |
| 1.4.10 Reflow | AA | Partial | At 720 × 450 (a 1440 px window at 200%) the interface has no horizontal scrolling (`document-a11y.spec.ts`). 320 px was not tested. The page layout shows fixed-size pages and scrolls in two directions when zoomed in, which the criterion allows for content that needs a two-dimensional layout |
| 1.4.11 Non-text contrast | AA | Not tested | Focus rings and control borders were not measured |
| 1.4.12 Text spacing | AA | Not tested | |
| 1.4.13 Content on hover or focus | AA | Not tested | The mini toolbar closes on typing or Escape (`document-mobile.spec.ts`, unit tests). Tooltips and the change hover card were not checked against the three conditions |

## Operable

| Criterion | Level | Status | Evidence and notes |
| --- | --- | --- | --- |
| 2.1.1 Keyboard | A | Partial | Every command is reachable from the ribbon, the menus or a shortcut (`document-keyboard.spec.ts`, 85 shortcuts; `document-dialogs-a11y.spec.ts`). Mouse-only: dragging ruler markers, dragging a picture to move it, drawing table borders, click and type. Each has a dialog that does the same by keyboard, except click and type |
| 2.1.2 No keyboard trap | A | Passes | F6 and Escape leave the page, panes and dialogs (`document-a11y.spec.ts`) |
| 2.1.4 Character key shortcuts | A | Passes | Shortcuts need a modifier, except key tips, which are active only after Alt |
| 2.2.1, 2.2.2 Timing, moving content | A | Not tested | Nothing in the editor times out. Presence carets of other people in a collaboration session move as they type; this was not assessed |
| 2.3.1 Three flashes | A | Passes | Nothing flashes |
| 2.4.1 Bypass blocks | A | Passes | F6 moves between ribbon, page, panes and status bar |
| 2.4.2 Page titled | A | Not applicable | The host page sets the title |
| 2.4.3 Focus order | A | Passes | Dialogs trap Tab and return focus (`document-dialogs-a11y.spec.ts`) |
| 2.4.4 Link purpose | A | Partial | Depends on the link text in the document |
| 2.4.5 Multiple ways | AA | Not applicable | A component, not a set of pages. Inside a document: the navigation pane, find, and go-to |
| 2.4.6 Headings and labels | AA | Passes | Controls are labelled (axe) |
| 2.4.7 Focus visible | AA | Passes | `document-a11y.spec.ts` checks a visible ring on ribbon controls, dialogs and panes |
| 2.4.11 Focus not obscured (minimum) | AA | Partial | The cursor is scrolled into view, also above the on-screen keyboard (`document-mobile.spec.ts`). A floating mini toolbar can cover a line of text until it is dismissed |
| 2.5.1 Pointer gestures | A | Passes | No multi-point or path gestures |
| 2.5.2 Pointer cancellation | A | Passes | Commands run on click, not on press |
| 2.5.3 Label in name | A | Passes | axe |
| 2.5.4 Motion actuation | A | Not applicable | |
| 2.5.7 Dragging movements | AA | Partial | Ruler markers, table column edges and pictures can be changed in dialogs without dragging. Selecting text by touch uses the browser's handles |
| 2.5.8 Target size (minimum) | AA | Partial | The touch toolbar has 44 px buttons (`document-mobile.spec.ts`). Ribbon buttons were not measured. Ruler markers and table resize handles are smaller than 24 px |

## Understandable

| Criterion | Level | Status | Evidence and notes |
| --- | --- | --- | --- |
| 3.1.1 Language of page | A | Passes | The editing surface carries `lang` from the host page |
| 3.1.2 Language of parts | AA | Not tested | Run language from a DOCX file is kept in the file but not written to `lang` attributes |
| 3.2.1, 3.2.2 On focus, on input | A | Passes | Focus and input do not change context |
| 3.2.3, 3.2.4 Consistent navigation and identification | AA | Passes | One ribbon, one set of names |
| 3.2.6 Consistent help | A | Not applicable | |
| 3.3.1 Error identification | A | Passes | Dialog fields set `aria-invalid` and a message (`document-dialogs-a11y.spec.ts`) |
| 3.3.2 Labels or instructions | A | Passes | axe |
| 3.3.3 Error suggestion | AA | Partial | Messages name the field; not all suggest a value |
| 3.3.4 Error prevention | AA | Passes | Every edit can be undone |
| 3.3.7 Redundant entry | A | Not applicable | |
| 3.3.8 Accessible authentication | AA | Not applicable | The protection password is a plain password field that accepts paste |

## Robust

| Criterion | Level | Status | Evidence and notes |
| --- | --- | --- | --- |
| 4.1.2 Name, role, value | A | Partial | Tabs, toolbars, menus, dialogs and the structures listed above have roles, names and states (axe, tree snapshots). Form content controls inside the page are drawn by the editor and were checked only by axe |
| 4.1.3 Status messages | AA | Passes | Formatting, page and section, table position, review context and blocked addresses are announced through a polite live region (`document-announce.spec.ts`, `document-link-tiers.spec.ts`) |

## Mobile and touch

- When an on-screen keyboard opens, the editor reads `visualViewport`, sets `data-keyboard="open"` and `--lq-doc-keyboard-inset` on its root element, hides the status bar and scrolls so the cursor stays above the keyboard.
- A selection made by touch brings up the formatting toolbar below the selection, clear of the browser's selection handles, with 44 px buttons.
- Selection handles are the browser's own. The editor does not draw handles.
- This was tested with touch emulation and a simulated viewport change in Chrome and Firefox (`e2e/tests/document-mobile.spec.ts`), not on a phone.

## What would change this report

A session with at least NVDA with Firefox and VoiceOver with Safari, by someone who uses them daily, is the missing evidence. Tell us what you find: a criterion that fails for you is a bug.
