On 2015-03-10 1:56 AM, Erwin Dokter wrote: > On 10-03-2015 01:07, Matthew Flaschen wrote: >> >> For comparison, there is also https://gerrit.wikimedia.org/r/#/c/193434/ >> . Paladox is proposing to make wgLogo SVG (will need back-compat of >> course), with wgLogoPNG as a fallback for browsers that don't support >> SVG. > > Depending on the complexity of the SVG logo, that could result in a > large file being downloaded. The Wikipedia logo SVG is 162 KB vs. 19 > KB for the PNG. But if someone wants SVG, by all means > > One question though; the logo is now a background image, requiring > media queries for PNG and a lot of CSS background hacking for SVG. Is > there no way to do it using a regular <img> tag, using srcset for PNG, > instead? > > Regards, IIRC there are some reasons related to something like overflow or centering that require the use of a background in the MonoBook/Vector style skins. Plus site styles that use CSS to override the logo.
Either way, even if we switched Vector to use an <img> we'd still have to solve the issue of using a background-image since there will be other skins that use a background-image. ~Daniel Friesen (Dantman, Nadir-Seen-Fire) [http://danielfriesen.name/] _______________________________________________ Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l