Revert "Load 'mediawiki.legacy.commonPrint' styles with a media type property"
authorBartosz Dziewoński <matma.rex@gmail.com>
Thu, 10 Sep 2015 17:58:58 +0000 (17:58 +0000)
committerBartosz Dziewoński <matma.rex@gmail.com>
Thu, 10 Sep 2015 17:58:58 +0000 (17:58 +0000)
Nested media queries are not allowed in CSS 2 and not supported
in older browsers.

This reverts commit 11e47561e4652adf1180987f28a2d673286937a0.

Bug: T108727
Change-Id: Ibef40e79a5d5e229df8f874b7dea5b590f3f7320

includes/OutputPage.php
resources/Resources.php

index 26f9efa..72d8a7c 100644 (file)
@@ -2909,8 +2909,7 @@ class OutputPage extends ContextSource {
 
                                // Automatically select style/script elements
                                if ( $only === ResourceLoaderModule::TYPE_STYLES ) {
-                                       $media = $group === 'print' ? 'print' : 'all';
-                                       $link = Html::linkedStyle( $url, $media );
+                                       $link = Html::linkedStyle( $url );
                                } else {
                                        if ( $context->getRaw() || $isRaw ) {
                                                // Startup module can't load itself, needs to use <script> instead of mw.loader.load
index 24c150e..2396128 100644 (file)
@@ -1674,7 +1674,6 @@ return array(
                'styles' => array(
                        'resources/src/mediawiki.legacy/commonPrint.css' => array( 'media' => 'print' )
                ),
-               'group' => 'print',
        ),
        'mediawiki.legacy.protect' => array(
                'scripts' => 'resources/src/mediawiki.legacy/protect.js',