From 12240efe6d38a028e95b72517b819a57052e009c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rodrigo=20Gir=C3=A3o=20Serr=C3=A3o?= <5621605+rodrigogiraoserrao@users.noreply.github.com> Date: Tue, 10 Oct 2023 16:53:49 +0100 Subject: [PATCH] Add will-change to excalidraw diagrams. Adding will-change: filter seems to fix the issue with the Excalidraw diagrams on dark mode and recent Safari versions. This change was also tested on Firefox and Chrome and it didn't break the diagrams in those browsers. This fixes #3497. --- docs/stylesheets/custom.css | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/stylesheets/custom.css b/docs/stylesheets/custom.css index 171dd9f8b9..c2659e1498 100644 --- a/docs/stylesheets/custom.css +++ b/docs/stylesheets/custom.css @@ -14,6 +14,7 @@ h3 .doc-heading code { } body[data-md-color-primary="black"] .excalidraw svg { + will-change: filter; filter: invert(100%) hue-rotate(180deg); }