Skip to content

Commit dcbf5f6

Browse files
authored
sort of fix safari bug, but not really (sveltejs#599)
1 parent c83d923 commit dcbf5f6

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

apps/svelte.dev/src/routes/_home/Testimonials.svelte

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,10 +133,11 @@
133133
-webkit-transform: var(--safari-fix);
134134
135135
@media all and not (hover: none) {
136-
filter: grayscale(1);
136+
/* the additional `contrast(1)` is necessary for safari 18 to not behave stupidly */
137+
filter: grayscale(1) contrast(1);
137138
138139
a:hover & {
139-
filter: grayscale(0);
140+
filter: grayscale(0) contrast(1);
140141
}
141142
}
142143
}

0 commit comments

Comments
 (0)