{
  "id": "F15",
  "rulePrefix": "F15",
  "variant": null,
  "ruleType": "w3c-failure",
  "scanScope": "specimen",
  "synthetic": false,
  "status": "current",
  "title": "Failure of Success Criterion 4.1.2 due to implementing custom controls that do not use an accessibility API for the technology, or do so incompletely",
  "summary": "implementing custom controls that do not use an accessibility API for the technology, or do so incompletely",
  "whyItFails": "This page reproduces the F15 failure pattern so auditors can verify detection against 4.1.2.",
  "principles": [
    "robust"
  ],
  "guidelines": [
    "4.1"
  ],
  "successCriteria": [
    {
      "id": "4.1.2",
      "name": "Name, Role, Value",
      "level": "A",
      "slug": "name-role-value"
    }
  ],
  "versions": [
    "2.0",
    "2.1",
    "2.2"
  ],
  "automatable": "yes",
  "requires": [
    "html",
    "css"
  ],
  "isolated": true,
  "pairWith": [],
  "w3c": {
    "understanding": [
      "https://www.w3.org/WAI/WCAG22/Understanding/name-role-value"
    ],
    "quickref": [
      "https://www.w3.org/WAI/WCAG22/quickref/#name-role-value"
    ],
    "technique": "https://www.w3.org/WAI/WCAG22/Techniques/failures/F15"
  },
  "specimen": {
    "html": "<div class=\"f15-slider\" onclick=\"this.dataset.val=(+this.dataset.val||0)+10\">\n  <span class=\"f15-thumb\" style=\"left:0\"></span>\n</div>\n<p>Custom slider with no role, name, or keyboard support.</p>",
    "css": ".f15-slider { position:relative;width:200px;height:8px;background:#ccc;cursor:pointer; }\n.f15-thumb { position:absolute;top:-6px;width:20px;height:20px;background:#333;border-radius:50%; }",
    "js": "",
    "assets": []
  },
  "expectedFindings": [
    {
      "sc": "4.1.2",
      "outcome": "fail",
      "note": "Specimen demonstrates failure of 4.1.2."
    }
  ],
  "mustNotFlag": [],
  "manualCheck": "Confirm the specimen demonstrates the documented F15 failure in isolation.",
  "generated": {
    "url": "https://wcagfail.patternd.io/specimens/F15/",
    "lastmod": "2026-10-08"
  }
}
