diff --git a/src/lib/components/ratio/ColorIssues.svelte b/src/lib/components/ratio/ColorIssues.svelte index f83f1e3..2fd3f43 100644 --- a/src/lib/components/ratio/ColorIssues.svelte +++ b/src/lib/components/ratio/ColorIssues.svelte @@ -54,6 +54,24 @@ adjust the color to be in gamut.

+
Background Color Alpha Values
+
+

+ WCAG 2 contrast does not consider alpha values. Because we don't know + what is behind your background color, we can't estimate the contrast. If + the background color is not opaque, the contrast ratio is computed + without background or foreground opacity. +

+
+
Foreground Color Alpha Values
+
+

+ WCAG 2 contrast does not consider alpha values, but we can approximate a + ratio by premultiplying a semi-transparent foreground color in the sRGB + space. In practice, the displayed foreground color may vary, depending + on the display and browser. +

+
diff --git a/src/lib/components/ratio/index.svelte b/src/lib/components/ratio/index.svelte index 7275d7e..d6385cd 100644 --- a/src/lib/components/ratio/index.svelte +++ b/src/lib/components/ratio/index.svelte @@ -1,15 +1,30 @@