public final class WCagChecker extends Object
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isTextWcagAAACompliant(double fontSize,
double contrastRatio)
Checks for WCAG AAA compliance.
|
static boolean |
isTextWcagAACompliant(double fontSize,
double contrastRatio)
Checks for WCAG AA compliance.
|
public static boolean isTextWcagAACompliant(double fontSize,
double contrastRatio)
fontSize - The font size in pixelscontrastRatio - The contrast ratio between text and backgroundtrue if the text meets WCAG AA compliance, false otherwisepublic static boolean isTextWcagAAACompliant(double fontSize,
double contrastRatio)
fontSize - The font size in pixelscontrastRatio - The contrast ratio between text and backgroundtrue if the text meets WCAG AAA compliance, false otherwiseCopyright © 1998–2026 Apryse Group NV. All rights reserved.