From a03f159e55ba8ddae3facb3b1c31d33a308ba0d6 Mon Sep 17 00:00:00 2001 From: jdlrobson Date: Mon, 23 Apr 2018 13:42:31 -0700 Subject: [PATCH] Size restrict images inside noscript tags Bug: T191893 Change-Id: Ibbba75fcb978b3b049f4cb100f39146d39ebf6af --- resources/skins.minerva.content.styles/images.less | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/resources/skins.minerva.content.styles/images.less b/resources/skins.minerva.content.styles/images.less index 985b03e..8b3a79a 100644 --- a/resources/skins.minerva.content.styles/images.less +++ b/resources/skins.minerva.content.styles/images.less @@ -49,7 +49,10 @@ // Prevent inline styles on images in wikitext // Note we restrict to img's to avoid conflicts with VisualEditor shields // See bug T64460 - a > img { + a > img, + // due to lazy loading images we also must consider imgs inside noscript tags (T191893) + noscript > img, + { // make sure that images in articles don't cause a horizontal scrollbar // on small screens max-width: 100% !important;