Size restrict images inside noscript tags

Bug: T191893
Change-Id: Ibbba75fcb978b3b049f4cb100f39146d39ebf6af
This commit is contained in:
jdlrobson 2018-04-23 13:42:31 -07:00
parent c31f546bc0
commit a03f159e55
1 changed files with 4 additions and 1 deletions

View File

@ -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;