diff --git a/src/lib/components/ratio/ColorIssues.svelte b/src/lib/components/ratio/ColorIssues.svelte new file mode 100644 index 00000000..cb15db02 --- /dev/null +++ b/src/lib/components/ratio/ColorIssues.svelte @@ -0,0 +1,54 @@ + + +
+ Known Color Issues +
+
Gamut Mapping implementation
+
+ Browsers implemented gamut mapping using clipping, which is fast but + provides inferior results to the algorithm defined in the CSS Spec. Until browsers are updated, colors that are out of gamut for your + screen may be displayed very differently than expected. +
+
+
+ + diff --git a/src/lib/components/ratio/index.svelte b/src/lib/components/ratio/index.svelte index 953f01ae..df00395e 100644 --- a/src/lib/components/ratio/index.svelte +++ b/src/lib/components/ratio/index.svelte @@ -6,6 +6,8 @@ import { RATIOS } from '$lib/constants'; import { bg, fg } from '$lib/stores'; + import ColorIssues from './ColorIssues.svelte'; + $: ratio = contrast($bg, $fg, 'WCAG21'); $: displayRatio = Math.round((ratio + Number.EPSILON) * 100) / 100; $: pass = ratio >= RATIOS.AA.Large; @@ -65,6 +67,7 @@
Bold Weight
+