On Tue, Mar 10, 2015 at 1:56 AM, Erwin Dokter <er...@darcoury.nl> 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 > Yeah, using a direct SVG is currently not ideal for Wikipedia unless someone manages to make a much more lightweight SVG version of the logo. :( > 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? > Possible yes but it would change the skin layouts more dramatically and may break customized skins/CSS. "Fun!" :) On the plus side, the $wgLogoHD setting would work fine with both the background-image method currently used and a possible switch to <img>+srcset in the future if/when we're willing to make bigger skin markup changes... so we can adopt this first and then do skin cleanup later. -- brion _______________________________________________ Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l