diff --git a/app/code/Magento/Catalog/view/frontend/templates/product/image_with_borders.phtml b/app/code/Magento/Catalog/view/frontend/templates/product/image_with_borders.phtml index cc1a7276c70b8..1877a0fe2636f 100644 --- a/app/code/Magento/Catalog/view/frontend/templates/product/image_with_borders.phtml +++ b/app/code/Magento/Catalog/view/frontend/templates/product/image_with_borders.phtml @@ -12,7 +12,7 @@ $width = (int)$block->getWidth(); $paddingBottom = $block->getRatio() * 100; ?> - + getCustomAttributes() as $name => $value): ?> escapeHtmlAttr($name) ?>="escapeHtml($value) ?>" @@ -23,29 +23,3 @@ $paddingBottom = $block->getRatio() * 100; height="escapeHtmlAttr($block->getHeight()) ?>" alt="escapeHtmlAttr($block->getLabel()) ?>"/> -getProductId()} { - width: {$width}px; -} -.product-image-container-{$block->getProductId()} span.product-image-wrapper { - padding-bottom: {$paddingBottom}%; -} -STYLE; -//In case a script was using "style" attributes of these elements -$script = <<