|
|
@@ -269,6 +269,7 @@ this.docHelper = this.docHelper || (() => {
|
|
|
const computedStyle = win.getComputedStyle(imageElement);
|
|
|
if (computedStyle) {
|
|
|
imageData.size = getSize(win, imageElement);
|
|
|
+ imageData.empty = imageElement.naturalWidth <= 1 && imageElement.naturalHeight <= 1;
|
|
|
if ((!computedStyle.getPropertyValue("background-image") || computedStyle.getPropertyValue("background-image") == "none") && imageData.size.pxWidth > 1 && imageData.size.pxHeight > 1) {
|
|
|
imageData.replaceable = true;
|
|
|
imageData.objectFit = computedStyle.getPropertyValue("object-fit");
|