wiki.techinc.nl/tests/phpunit/includes/resourceloader
Paladox 66b13d1ba8 Add support for SVGs to $wgLogoHD with PNG fallback
SVGs could already be used through $wgLogo. However, if a PNG fallback
is desired for older browsers, using SVGs was previously not possible.

This commit adds support for using an SVG image in $wgLogoHD and,
using $wgLogo as the fallback image.

Usage example:

> $wgLogo = '/path/to/png';
> $wgLogoHD = [
>     'svg' => 'path/to/svg',
> ];

Note: When the 'svg' key is set in $wgLogoHD, any '1.5x' and '2x' keys will
no longer be used because SVGs can render optimally on any screen sizes.

@Reedy, @Krinkle and @Brion VIBBER helped me alot with this.

Bug: T86229
Change-Id: I6197d96ce9110f4711ef2c4b198445bc5c6ae110
2017-10-24 17:51:28 +00:00
..
templates
DerivativeResourceLoaderContextTest.php resourceloader: Add test coverage for DerivativeResourceLoaderContext 2016-08-29 14:41:46 -07:00
MessageBlobStoreTest.php Switch to librarized version of TestingAccessWrapper 2017-04-20 14:15:57 +00:00
ResourceLoaderClientHtmlTest.php resourceloader: Add unit test for ClientHtml::makeLoad sync=>true 2017-10-03 18:22:43 +01:00
ResourceLoaderContextTest.php resourceloader: Don't let module exception break startup 2016-12-15 23:25:57 +00:00
ResourceLoaderFileModuleTest.php resourceloader: Include lessVars in FileModule definition summary 2017-07-27 03:02:09 +00:00
ResourceLoaderImageModuleTest.php Rename all files used in ResourceLoaderImageModule tests to fake names 2017-06-06 13:17:29 +00:00
ResourceLoaderImageTest.php resourceloader: Clarify operator precedence 2017-10-06 23:14:02 +00:00
ResourceLoaderModuleTest.php resourceloader: Add support for modules sending preload headers 2017-08-03 03:57:00 +00:00
ResourceLoaderOOUIImageModuleTest.php Rename all files used in ResourceLoaderImageModule tests to fake names 2017-06-06 13:17:29 +00:00
ResourceLoaderSkinModuleTest.php Add support for SVGs to $wgLogoHD with PNG fallback 2017-10-24 17:51:28 +00:00
ResourceLoaderStartUpModuleTest.php resourceloader: Avoid mw-exception log spam from PHPUnit tests 2017-07-15 00:37:53 +00:00
ResourceLoaderTest.php resourceloader: Introduce metric for backend response timing 2017-10-17 04:02:59 +01:00
ResourceLoaderWikiModuleTest.php Fix php code style 2017-05-05 12:03:54 +00:00