From 3fd9f49c499107a2aff878ce0f5d512176c6dc4e Mon Sep 17 00:00:00 2001 From: Neev Modh <141932641+neevmodh@users.noreply.github.com> Date: Sat, 26 Sep 2026 14:05:02 +0530 Subject: [PATCH] fix: pre-rasterize logo SVGs to avoid WebKit filter/mask rendering bugs vite-light.svg and vite-dark.svg use 15 filters plus an alpha mask to render the lightning-mark gradient glow. WebKit rasterizes these filter/mask effects differently than Chromium at small icon sizes (~24px), producing blur, color bleeding, and incorrect edges - Chrome renders the same files correctly. Replace the runtime filter/mask stack with a single pre-rasterized PNG (10x the viewBox resolution) embedded via , so both files render identically across browsers regardless of filter/mask rasterization differences, with no filter/mask processing needed at all. File paths, extensions, and viewBox stay the same so nothing downstream needs to change. This matches the fallback VitePress already adopted for the same files in vuejs/vitepress#5466. Fixes #23588 --- docs/public/vite-dark.svg | 135 ++----------------------------------- docs/public/vite-light.svg | 135 ++----------------------------------- 2 files changed, 8 insertions(+), 262 deletions(-) diff --git a/docs/public/vite-dark.svg b/docs/public/vite-dark.svg index ab59a675a0e6d5..421ff985820ed8 100644 --- a/docs/public/vite-dark.svg +++ b/docs/public/vite-dark.svg @@ -1,133 +1,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + diff --git a/docs/public/vite-light.svg b/docs/public/vite-light.svg index 96e9722bae89b6..b047dc5f4f7c6e 100644 --- a/docs/public/vite-light.svg +++ b/docs/public/vite-light.svg @@ -1,133 +1,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + +