浏览代码

fixed regression

Gildas 7 年之前
父节点
当前提交
f6c4df821d
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      lib/single-file/doc-helper.js

+ 1 - 1
lib/single-file/doc-helper.js

@@ -167,7 +167,7 @@ this.docHelper = this.docHelper || (() => {
 			doc.querySelectorAll("img[src]").forEach((imageElement, imageElementIndex) => {
 				const computedStyle = getComputedStyle(imageElement);
 				let imageData = {}, size = getSize(imageElement);
-				if (imageElement.src && size && !computedStyle.getPropertyValue("background-image")) {
+				if (imageElement.src && size && (!computedStyle.getPropertyValue("background-image") || computedStyle.getPropertyValue("background-image") == "none")) {
 					imageElement.setAttribute(imagesAttributeName(options.sessionId), imageElementIndex);
 					imageData = size;
 				}