microsoft / accessibility-insights-service

Accessibility Insights Service
Other
70 stars 51 forks source link

High contrast CSS properties scanner #2580

Closed lamaks closed 1 month ago

lamaks commented 1 month ago

Details

Implemented Edge deprecated high contrast CSS properties scanner.

Request

[
  {
    "url": "https://accessibilityinsights.io/",
    "priority": 100,
    "deepScan": false,
    "browserValidations": ["highContrastProperties"],
    "site": {
      "baseUrl": "https://accessibilityinsights.io/",
      "knownPages": []
    }
  }
]

Response

{
  "scanId": "11111111-0000-0000-0000-37b05484db3e",
  "url": "https://accessibilityinsights.io/",
  "scanType": "accessibility",
  "scanResult": {
    "state": "pass"
  },
  "browserValidationResult": {
    "highContrastProperties": "pending | pass | fail"
  },
...
}

Pull request checklist