ReferenceAPI
WcagVerdict
The result of one WCAG 2.2 contrast measurement, with the ratio, the floor for that use, and the success criterion it is measured against.
How this is generated
Source: lib/color/wcag.ts. Script: scripts/build-reference.mts. Command:
pnpm run generate.
Everything below is copied from the symbol, so a page is improved by improving its doc comment. The API index says why there is a page per symbol and what these pages still do not carry.
WcagVerdict
The result of one WCAG 2.2 contrast measurement, with the ratio, the floor for that use, and the success criterion it is measured against.
| Kind | Declared in |
|---|---|
| interface | lib/color/wcag.ts |
export interface WcagVerdict {
ratio: number
use: WcagUse
floor: number
passesAA: boolean
passesAAA: boolean
criterion: string
}