From 1f8912318dfaaa133f6dcf2058b06d6f61909224 Mon Sep 17 00:00:00 2001 From: Rich Harris Date: Wed, 23 Oct 2024 18:19:42 -0400 Subject: [PATCH] sort of fix safari bug, but not really --- apps/svelte.dev/src/routes/_home/Testimonials.svelte | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/apps/svelte.dev/src/routes/_home/Testimonials.svelte b/apps/svelte.dev/src/routes/_home/Testimonials.svelte index e35af8ac2f..902b4b6c25 100644 --- a/apps/svelte.dev/src/routes/_home/Testimonials.svelte +++ b/apps/svelte.dev/src/routes/_home/Testimonials.svelte @@ -133,10 +133,11 @@ -webkit-transform: var(--safari-fix); @media all and not (hover: none) { - filter: grayscale(1); + /* the additional `contrast(1)` is necessary for safari 18 to not behave stupidly */ + filter: grayscale(1) contrast(1); a:hover & { - filter: grayscale(0); + filter: grayscale(0) contrast(1); } } }