diff --git a/src/rendition.js b/src/rendition.js index 810b581..02c1348 100644 --- a/src/rendition.js +++ b/src/rendition.js @@ -598,8 +598,8 @@ class Rendition { contents.addStylesheetRules([ ["img", - ["max-width", (this._layout.columnWidth) + "px; !important"], - ["max-height", (this._layout.height) + "px; !important"], + ["max-width", (this._layout.columnWidth) + "px !important"], + ["max-height", (this._layout.height) + "px !important"], ["object-fit", "contain"], ["page-break-inside", "avoid"] ]