https://bugzilla.wikimedia.org/show_bug.cgi?id=38119
--- Comment #1 from Brion Vibber <[email protected]> 2012-07-02 19:37:26 UTC --- Something like this should fix: * set width/height attributes of the 1x images on the <img> * when checking window.devicePixelRatio, for safety bucket them into: - <= 1 -> 1 - > 1 && < 2 -> 1.5 - >= 2 -> 2 This'll avoid breaking on ldpi devices where it'll be 0.75, and doesn't need to worry about converting numbers to strings strictly. Alternately, just use the 2x assets always like we do on the Wikipedia app. ;) -- Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. You are on the CC list for the bug. _______________________________________________ Wikibugs-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
