{
  "id": "F101",
  "rulePrefix": "F101",
  "variant": null,
  "ruleType": "w3c-failure",
  "scanScope": "specimen",
  "synthetic": false,
  "status": "current",
  "title": "Failure of Success Criterion 2.5.2 due to activating a control on the down-event",
  "summary": "activating a control on the down-event",
  "whyItFails": "This page reproduces the F101 failure pattern so auditors can verify detection against 2.5.2.",
  "principles": [
    "operable"
  ],
  "guidelines": [
    "2.5"
  ],
  "successCriteria": [
    {
      "id": "2.5.2",
      "name": "Pointer Cancellation",
      "level": "A",
      "slug": "pointer-cancellation"
    }
  ],
  "versions": [
    "2.1",
    "2.2"
  ],
  "automatable": "partial",
  "requires": [
    "html",
    "js",
    "input"
  ],
  "isolated": true,
  "pairWith": [],
  "w3c": {
    "understanding": [
      "https://www.w3.org/WAI/WCAG22/Understanding/pointer-cancellation"
    ],
    "quickref": [
      "https://www.w3.org/WAI/WCAG22/quickref/#pointer-cancellation"
    ],
    "technique": "https://www.w3.org/WAI/WCAG22/Techniques/failures/F101"
  },
  "specimen": {
    "html": "<button type=\"button\" id=\"f101-btn\">Hold to confirm payment</button>\n<p id=\"f101-log\"></p>",
    "css": "",
    "js": "document.getElementById('f101-btn')?.addEventListener('pointerdown', () => {\n  document.getElementById('f101-log').textContent = 'Payment confirmed on pointer down (before release).';\n});",
    "assets": [],
    "demoHint": "Press and hold — the action fires on pointer down, not on release."
  },
  "expectedFindings": [
    {
      "sc": "2.5.2",
      "outcome": "fail",
      "note": "Specimen demonstrates failure of 2.5.2."
    }
  ],
  "mustNotFlag": [],
  "manualCheck": "Confirm the specimen demonstrates the documented F101 failure in isolation.",
  "generated": {
    "url": "https://wcagfail.patternd.io/specimens/F101/",
    "lastmod": "2026-10-08"
  }
}
