|
@@ -272,6 +272,7 @@ this.docHelper = this.docHelper || (() => {
|
|
|
imageData.empty = imageElement.naturalWidth <= 1 && imageElement.naturalHeight <= 1;
|
|
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) {
|
|
if ((!computedStyle.getPropertyValue("background-image") || computedStyle.getPropertyValue("background-image") == "none") && imageData.size.pxWidth > 1 && imageData.size.pxHeight > 1) {
|
|
|
imageData.replaceable = true;
|
|
imageData.replaceable = true;
|
|
|
|
|
+ imageData.backgroundColor = computedStyle.getPropertyValue("background-color");
|
|
|
imageData.objectFit = computedStyle.getPropertyValue("object-fit");
|
|
imageData.objectFit = computedStyle.getPropertyValue("object-fit");
|
|
|
imageData.objectPosition = computedStyle.getPropertyValue("object-position");
|
|
imageData.objectPosition = computedStyle.getPropertyValue("object-position");
|
|
|
}
|
|
}
|