Last modified: 2014-09-24 21:44:54 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T73253, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 71253 - Don't use background-image-svg when there is no SVG
Don't use background-image-svg when there is no SVG
Status: NEW
Product: MediaWiki extensions
Classification: Unclassified
GettingStarted (Other open bugs)
master
All All
: Unprioritized normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-09-24 21:44 UTC by Matthew Flaschen
Modified: 2014-09-24 21:44 UTC (History)
4 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Matthew Flaschen 2014-09-24 21:44:54 UTC
See https://git.wikimedia.org/blob/mediawiki%2Fextensions%2FGettingStarted.git/5f5c2f1c9522765d631f9f9fc05ca21a76ae3486/resources%2Flightbulb%2Flightbulb.flyout.less#L212

It looks like the idea is to use the higher-resolution GIF on browsers that support SVG.  However, there's no absolute correlation between screen pixel density and browser support for SVG backgrounds.

Alternatives are:

* Media queries (which would keep it a background image). See example section at https://developer.mozilla.org/en-US/docs/Web/Guide/CSS/Media_queries#-moz-device-pixel-ratio .  This is probably simplest, since it doesn't require changing the markup.

* <img srcset> (which requires converting it to an <img>).  There is also a module jQuery.hidpi, which can be used to polyfill this.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links