From b75017e32cba05f1cc8fbd2bc7181b3dc2c9166a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bartosz=20Dziewo=C5=84ski?= Date: Thu, 10 Sep 2015 17:58:58 +0000 Subject: [PATCH] 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 --- includes/OutputPage.php | 3 +-- resources/Resources.php | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) 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