Browser accessibility observations
The SDK accessibility fixture was exercised on 30 November 2026 in real headless Chromium 159, with desktop 1366 × 768 and mobile 390 × 844 layouts. The mobile context enables touch, while keyboard checks remain automated browser key events. These observations cover the generic SDK fixture and synthetic popup content, not every integrating website or a full WCAG conformance audit.
Run npx playwright test -c tests/performance/playwright.config.ts accessibility.spec.ts. JSON results and desktop/mobile/popup PNGs are under artifacts/performance/. The fixture uses the actual local Denmark archive, styles, fonts, sprites and worker. It sets Danish document language and basic page typography, without custom target-size overrides for SDK controls.
Exercised behavior
- Actual Tab navigation reaches the map canvas, zoom controls, fullscreen, source attribution links and the alternative marker list.
- Enter on a list item opens its marker popup. The named dialog receives focus, Tab reaches its content link, and Escape closes the popup and returns focus to the activating list button.
- The focused map canvas responds to keyboard zoom. Rotation stays disabled by default.
prefers-reduced-motion: reduceis active. A camera move to a different center/zoom completes without leaving an animation in progress.- The alternative list uses visible marker titles. Popups carry a dialog role/name, live loading text and visible focus indication. Control labels are localized in Danish.
- Malicious popup attributes/scripts are removed, and an image at an unapproved origin causes no request. No cookies or local/session storage are created by the fixture.
- Teardown removes the generated map/list resources; independently tested ESM and script-global instances remain isolated.
Axe 4.14.1 runs WCAG 2 A/AA and WCAG 2.1 A/AA rule tags scoped to the fixture's main content while a popup is open. The final targeted run reported zero violations on both layouts and 16 applicable rules passing. The close glyph's relationship to its accessible name remains marked for human review. An automatic scan cannot certify a canvas map or replace assistive-technology testing.
Issues found and corrected
The initial scan found an image-alt violation in intentionally malicious popup HTML. Its external src had been rejected, but an empty unlabeled image remained. The SDK now removes an image entirely when its source violates the resource policy; the regression was reproduced before the change and passed after the rebuilt SDK was served.
A separate keyboard regression reproduced Escape failing to close a loading popup when its sibling close button owned focus. The Escape listener now covers the entire popup container. The rebuilt regression confirms that closing during loading aborts the provider signal and rejects late content updates, including when focus is on the close button.
Visual review also exposed asynchronous image/content growth overflowing a small map after the initial loading layout. The SDK now refreshes public Popup layout, caps content to a scroll viewport inside the actual container, and observes image/content/container changes. Popup stacking keeps the close button above navigation while reserving bottom attribution space. A mobile-touch regression loads a delayed 600 px image, shrinks the map from 260 to 180 px high, verifies real close-button hit testing and a reachable booking action, preserves focus, and confirms all resize observers disconnect after teardown. See artifacts/popup-sizing-mobile.png. This issue demonstrates why a zero-violation automated scan does not replace visual layout review.
The first measurement also showed browser-default accessible-list buttons at 21 px high. The distributable SDK stylesheet now gives list buttons and spiderfy buttons a minimum 44 × 44 px target; popup close has a 32 × 32 px target, additional content spacing and Danish Luk information labeling. Navigation controls retain MapLibre's 29 × 29 px targets. Source CSS is sdk/maps.css and must be included in the published /sdk/v1/maps.css; host websites should load that complete stylesheet.
Default translucent attribution also prevented a definite automated contrast result over changing map colors. SDK-scoped attribution now has an opaque white background and dark text/links. The rebuilt desktop/mobile scans no longer flag its contrast for manual review. Final target-size assertions confirm 44 px list buttons and at least 32 px popup close on both layouts.
Generated map pins remain 32 × 40 pixels with a bottom anchor, as specified. Pins are rendered in a GPU canvas, so the separate semantic list provides keyboard access to each marker rather than exposing every GPU symbol as a DOM button. Arbitrary custom HTML markers/popups remain the integrating application's responsibility for accessible structure, names, focus behavior and alternative text.
Contrast and manual interpretation
Computed foreground/background values give the following relative-luminance ratios:
| Presentation | Colors | Ratio |
|---|---|---|
| Default cluster count / white pin detail | White on #1976d2 |
4.60:1 |
| Fixture popup text | #172c29 on white |
14.70:1 |
| SDK source attribution | #172c29 on opaque white |
14.70:1 |
| Benchmark custom HTML cluster | White on #0756a3 |
7.32:1 |
The default 13 px cluster count's specified colors exceed the 4.5:1 normal-text threshold. These computations use specified colors; they do not audit every basemap label, antialiased pixel, custom project palette or translucent attribution backdrop. The W3C contrast explanation describes those thresholds and their interpretation.
The W3C target-size explanation distinguishes the WCAG 2.2 24 px minimum, exceptions and the enhanced 44 px size. The SDK's larger list/spiderfy targets support touch use; target sizes alone do not establish conformance. The close glyph is a conventional multiplication/close symbol with a named button, but its label/content check still needs human evaluation. Cartographic labels and arbitrary custom palettes still need representative manual review.
Limits
This is not a full WCAG AA claim. Screen-reader sessions with NVDA/JAWS/VoiceOver, magnification/reflow at 200–400%, forced colors, diverse real touch devices, cognitive usability, dynamic asynchronous error announcements and non-Chromium assistive-technology combinations still require manual validation. The tested host document and synthetic popup are only one integration. Browser controls and generated pins are verified visually and programmatically; all cartographic information in a canvas is not automatically equivalent to a screen-reader description.