{
  "id": "F54",
  "rulePrefix": "F54",
  "variant": null,
  "ruleType": "w3c-failure",
  "scanScope": "specimen",
  "synthetic": false,
  "status": "current",
  "title": "Failure of Success Criterion 2.1.1 due to using only pointing-device-specific event\n                    handlers (including gesture) for a function",
  "summary": "using only pointing-device-specific event\n                    handlers (including gesture) for a function",
  "whyItFails": "This page reproduces the F54 failure pattern so auditors can verify detection against 2.1.1, 2.1.3.",
  "principles": [
    "operable"
  ],
  "guidelines": [
    "2.1"
  ],
  "successCriteria": [
    {
      "id": "2.1.1",
      "name": "Keyboard",
      "level": "A",
      "slug": "keyboard"
    },
    {
      "id": "2.1.3",
      "name": "Keyboard (No Exception)",
      "level": "AAA",
      "slug": "keyboard-no-exception"
    }
  ],
  "versions": [
    "2.0",
    "2.1",
    "2.2"
  ],
  "automatable": "yes",
  "requires": [
    "html",
    "css"
  ],
  "isolated": true,
  "pairWith": [],
  "w3c": {
    "understanding": [
      "https://www.w3.org/WAI/WCAG22/Understanding/keyboard",
      "https://www.w3.org/WAI/WCAG22/Understanding/keyboard-no-exception"
    ],
    "quickref": [
      "https://www.w3.org/WAI/WCAG22/quickref/#keyboard",
      "https://www.w3.org/WAI/WCAG22/quickref/#keyboard-no-exception"
    ],
    "technique": "https://www.w3.org/WAI/WCAG22/Techniques/failures/F54"
  },
  "specimen": {
    "html": "<div class=\"f54-btn\" onmousedown=\"document.getElementById('f54-out').textContent='Activated'\">Press (mouse only)</div>\n<p id=\"f54-out\"></p>",
    "css": ".f54-btn { display:inline-block;padding:8px 16px;background:#333;color:#fff;cursor:pointer; }",
    "js": "",
    "assets": [],
    "demoHint": "Use a mouse — the control listens to mousedown only with no keyboard equivalent."
  },
  "expectedFindings": [
    {
      "sc": "2.1.1",
      "outcome": "fail",
      "note": "Specimen demonstrates failure of 2.1.1."
    },
    {
      "sc": "2.1.3",
      "outcome": "fail",
      "note": "Specimen demonstrates failure of 2.1.3."
    }
  ],
  "mustNotFlag": [],
  "manualCheck": "Confirm the specimen demonstrates the documented F54 failure in isolation.",
  "generated": {
    "url": "https://wcagfail.patternd.io/specimens/F54/",
    "lastmod": "2026-10-08"
  }
}
