{
  "id": "F98",
  "rulePrefix": "F98",
  "variant": null,
  "ruleType": "w3c-failure",
  "scanScope": "specimen",
  "synthetic": false,
  "status": "current",
  "title": "Failure due to interactions being limited to touch-only on touchscreen devices",
  "summary": "interactions being limited to touch-only on touchscreen devices",
  "whyItFails": "This page reproduces the F98 failure pattern so auditors can verify detection against 2.5.6, 2.1.1, 2.5.1.",
  "principles": [
    "operable"
  ],
  "guidelines": [
    "2.5",
    "2.1"
  ],
  "successCriteria": [
    {
      "id": "2.5.6",
      "name": "Concurrent Input Mechanisms",
      "level": "AAA",
      "slug": "concurrent-input-mechanisms"
    },
    {
      "id": "2.1.1",
      "name": "Keyboard",
      "level": "A",
      "slug": "keyboard"
    },
    {
      "id": "2.5.1",
      "name": "Pointer Gestures",
      "level": "A",
      "slug": "pointer-gestures"
    }
  ],
  "versions": [
    "2.0",
    "2.1",
    "2.2"
  ],
  "automatable": "partial",
  "requires": [
    "html",
    "css",
    "js"
  ],
  "isolated": true,
  "pairWith": [],
  "w3c": {
    "understanding": [
      "https://www.w3.org/WAI/WCAG22/Understanding/concurrent-input-mechanisms",
      "https://www.w3.org/WAI/WCAG22/Understanding/keyboard",
      "https://www.w3.org/WAI/WCAG22/Understanding/pointer-gestures"
    ],
    "quickref": [
      "https://www.w3.org/WAI/WCAG22/quickref/#concurrent-input-mechanisms",
      "https://www.w3.org/WAI/WCAG22/quickref/#keyboard",
      "https://www.w3.org/WAI/WCAG22/quickref/#pointer-gestures"
    ],
    "technique": "https://www.w3.org/WAI/WCAG22/Techniques/failures/F98"
  },
  "specimen": {
    "html": "<p>Swipe right on a touchscreen to reveal the menu — mouse users have no equivalent.</p>\n<div id=\"f98-panel\" class=\"f98-panel\" hidden>Menu content</div>",
    "css": ".f98-panel { margin-top: 8px; padding: 8px; border: 1px solid #999; }",
    "js": "document.getElementById('f98-panel')?.parentElement?.addEventListener('touchstart', (e) => {\n  if (e.touches[0]?.clientX > 40) document.getElementById('f98-panel')?.removeAttribute('hidden');\n}, { passive: true });",
    "assets": [],
    "demoHint": "On a touchscreen, swipe from the left edge; there is no keyboard or pointer alternative."
  },
  "expectedFindings": [
    {
      "sc": "2.5.6",
      "outcome": "fail",
      "note": "Specimen demonstrates failure of 2.5.6."
    },
    {
      "sc": "2.1.1",
      "outcome": "fail",
      "note": "Specimen demonstrates failure of 2.1.1."
    },
    {
      "sc": "2.5.1",
      "outcome": "fail",
      "note": "Specimen demonstrates failure of 2.5.1."
    }
  ],
  "mustNotFlag": [],
  "manualCheck": "Confirm the specimen demonstrates the documented F98 failure in isolation.",
  "generated": {
    "url": "https://wcagfail.patternd.io/specimens/F98/",
    "lastmod": "2026-10-08"
  }
}
