mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/MinervaNeue
synced 2024-11-28 08:00:32 +00:00
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
|
||||
// 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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue