brion added a comment.
So if I'm reading the above comments correctly, these banners want to use the
width capping specifications ('w640') in img srcset, but Safari and our JS
polyfill only support switching on the device pixel ratio ('2x').
I suppose you might be able to rig up a fancier polyfill (there probably are
some out there)... but beware that a JS polyfill will run *after* the browser's
already started downloading the image it originally selected, which in this
case will be the giant one from the native srcset. So that may not be an ideal
solution.
Consider also using a CSS background image which would allow using a @media
selector on the screen size, and will work across more browsers...
TASK DETAIL
https://phabricator.wikimedia.org/T106523
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: brion
Cc: brion, gerritbot, Jdlrobson, Sumit, Aklapper, Wikidata-bugs,
Lydia_Pintscher, Malyacko, P.Copp
_______________________________________________
Wikidata-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs