Merge "Regression: Avoid reflows on lazy image placeholders"
This commit is contained in:
commit
a44370b2b0
|
@ -57,6 +57,12 @@
|
||||||
// make sure that images in articles don't cause a horizontal scrollbar
|
// make sure that images in articles don't cause a horizontal scrollbar
|
||||||
// on small screens
|
// on small screens
|
||||||
max-width: 100% !important;
|
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;
|
height: auto !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue