From 8574d807bfe9a91ab58de7023173c1178d578e7a Mon Sep 17 00:00:00 2001 From: Josha Munnik Date: Thu, 18 Feb 2016 17:16:01 +0200 Subject: [PATCH] Update img/etc. height for safari Added "height: auto !important;" to img, video, audio, object, svg so in Safari the element gets resized preserving the aspect ratio. --- src/dimensions/columns.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/dimensions/columns.js b/src/dimensions/columns.js index d4fdb15..6d69c6a 100644 --- a/src/dimensions/columns.js +++ b/src/dimensions/columns.js @@ -54,6 +54,7 @@ Monocle.Dimensions.Columns = function (pageDiv) { '}', 'img, video, audio, object, svg {', 'max-height: '+pdims.height+'px !important;', + 'height: auto !important;', '}' ]