From c1d524102fde9089479cb9dd4554e09676e9e48f Mon Sep 17 00:00:00 2001 From: James Stuckey Weber Date: Tue, 10 Dec 2024 19:16:40 +0000 Subject: [PATCH 01/11] Move color issues to main section --- src/lib/components/ratio/ColorIssues.svelte | 8 +------- src/lib/components/ratio/index.svelte | 2 -- src/routes/+page.svelte | 2 ++ src/sass/patterns/_disclosure.scss | 9 +++++---- 4 files changed, 8 insertions(+), 13 deletions(-) diff --git a/src/lib/components/ratio/ColorIssues.svelte b/src/lib/components/ratio/ColorIssues.svelte index f83f1e3..168b85e 100644 --- a/src/lib/components/ratio/ColorIssues.svelte +++ b/src/lib/components/ratio/ColorIssues.svelte @@ -3,19 +3,13 @@ import ExternalLink from '$lib/components/util/ExternalLink.svelte'; - interface Props { - pass: boolean; - } - - let { pass }: Props = $props(); - let startOpen = $state(false); onMount(() => { startOpen = window.matchMedia('(min-width: 80em)').matches; }); -
+
Known Color Issues
Gamut Mapping Implementation
diff --git a/src/lib/components/ratio/index.svelte b/src/lib/components/ratio/index.svelte index 7275d7e..75c98f5 100644 --- a/src/lib/components/ratio/index.svelte +++ b/src/lib/components/ratio/index.svelte @@ -1,7 +1,6 @@ -
- Known Color Issues -
-
Gamut Mapping Implementation
-
+
+
+

Known Color Issues

+
    +
  • +

    Gamut Mapping Implementation

    Browsers implemented gamut mapping using clipping, which is fast but provides inferior results compared to the algorithm defined in the . Until browsers are updated, colors that are out of gamut for your screen may be displayed very differently than expected.

    -
-
Checking for Out of Gamut Colors
-
+ +
  • +

    Checking for Out of Gamut Colors

    The new color features in CSS allow for a much wider range of colors, many of which cannot be shown on many (or any) screens. When selecting @@ -47,40 +41,27 @@ When a color is out of gamut for the user's screen, the browser will adjust the color to be in gamut.

    -
  • -
    -
    + + +