On Wed, Mar 21, 2012 at 11:39 AM, Bergi <a.d.be...@web.de> wrote:
> Brion Vibber schrieb:
>
>> Ooh! We may be able to handle this like the js/nojs styles.
>>
>> Have a bit of JS on startup check for svg support and add a class to the
>> HTML root element. Then we just need .svg .foo {} entries with the svg
>> background overrides.
>>
>> Not ideal but should work, with the downside that non-JS browsers don't
>> get
>> svg.
>
>
> Wouldn't that mean loading the png thumbnails, and then onDomReady replacing
> them with svgs? I think we really should deliver an output that lets the
> browser choose one of them, not one plus maybe a second to load.

What about the lowsrc attribute? Could we put the PNG into lowsrc, and
the SVG into src?

Magnus

_______________________________________________
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Reply via email to