From 2c68fc024840b41295e06cf171d18af4826d43a1 Mon Sep 17 00:00:00 2001 From: Sameh Khamis Date: Mon, 9 Nov 2026 10:21:48 -0800 Subject: [PATCH] Conformance: the atlas check makes its canvas slot only where a 2D context exists, not wherever there is a document --- src/render/conformance/checks/ports.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/render/conformance/checks/ports.js b/src/render/conformance/checks/ports.js index 258fc71df..d6c4275ec 100644 --- a/src/render/conformance/checks/ports.js +++ b/src/render/conformance/checks/ports.js @@ -1701,12 +1701,12 @@ export function portChecks() { await overAustin(h, r); const set = r.draw.icons({ id: 'conf:atlas' }); const at = (lon) => h.toEcef({ lon, lat: AUSTIN.lat, height: 0 }); - // A generated slot too, where there is a page to make it in. + // A generated slot too, where there is a canvas that draws in 2D. const canvas = globalThis.document?.createElement('canvas'); + const g = canvas?.getContext?.('2d'); const slots = { svg: ['dot', DOT, AUSTIN.lon - 0.002] }; - if (canvas) { + if (g) { canvas.width = canvas.height = 16; - const g = canvas.getContext('2d'); g.fillStyle = '#fff'; g.fillRect(0, 0, 16, 16); slots.canvas = [