|
@@ -278,7 +278,9 @@ this.docHelper = this.docHelper || (() => {
|
|
|
const computedStyle = win.getComputedStyle(imageElement);
|
|
const computedStyle = win.getComputedStyle(imageElement);
|
|
|
if (computedStyle) {
|
|
if (computedStyle) {
|
|
|
imageData.size = getSize(win, imageElement);
|
|
imageData.size = getSize(win, imageElement);
|
|
|
- if ((!computedStyle.getPropertyValue("background-image") || computedStyle.getPropertyValue("background-image") == "none") && (imageData.size.pxWidth > 1 || imageData.size.pxHeight > 1)) {
|
|
|
|
|
|
|
+ if ((!computedStyle.getPropertyValue("box-shadow") || computedStyle.getPropertyValue("box-shadow") == "none") &&
|
|
|
|
|
+ (!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.backgroundColor = computedStyle.getPropertyValue("background-color");
|
|
|
imageData.objectFit = computedStyle.getPropertyValue("object-fit");
|
|
imageData.objectFit = computedStyle.getPropertyValue("object-fit");
|