Merge "Regression: Avoid reflows on lazy image placeholders"

This commit is contained in:
jenkins-bot 2018-04-30 18:13:17 +00:00 committed by Gerrit Code Review
commit a44370b2b0
1 changed files with 6 additions and 0 deletions

View File

@ -57,6 +57,12 @@
// make sure that images in articles don't cause a horizontal scrollbar
// on small screens
max-width: 100% !important;
}
// Note height auto is only applied to images. Not neeed for the lazy-image-placeholder which is
// a gray box and will cause reflows.
noscript > img,
a > img {
height: auto !important;
}