From ae67b4d7a8ee297c225c1ea847b97b722d8218e5 Mon Sep 17 00:00:00 2001 From: Welkin Wong Date: Wed, 25 Oct 2023 02:12:15 +0800 Subject: [PATCH] fix: when bgImage eq to none, still drawImageCount --- src/embed-css-style-image.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/embed-css-style-image.ts b/src/embed-css-style-image.ts index a5ae434..575ddee 100644 --- a/src/embed-css-style-image.ts +++ b/src/embed-css-style-image.ts @@ -17,7 +17,7 @@ export function embedCssStyleImage( return properties .map(property => { const value = style.getPropertyValue(property) - if (!value) { + if (!value || value === 'none') { return null } if (IN_SAFARI || IN_FIREFOX) {