From: Bartosz DziewoƄski Date: Thu, 10 Sep 2015 17:58:58 +0000 (+0000) Subject: Revert "Load 'mediawiki.legacy.commonPrint' styles with a media type property" X-Git-Tag: 1.31.0-rc.0~10060^2 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/comptes/ajouter.php?a=commitdiff_plain;h=b75017e32cba05f1cc8fbd2bc7181b3dc2c9166a;p=lhc%2Fweb%2Fwiklou.git Revert "Load 'mediawiki.legacy.commonPrint' styles with a media type property" Nested media queries are not allowed in CSS 2 and not supported in older browsers. This reverts commit 11e47561e4652adf1180987f28a2d673286937a0. Bug: T108727 Change-Id: Ibef40e79a5d5e229df8f874b7dea5b590f3f7320 --- diff --git a/includes/OutputPage.php b/includes/OutputPage.php index 26f9efad5a..72d8a7c417 100644 --- a/includes/OutputPage.php +++ b/includes/OutputPage.php @@ -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