|
[MediaWiki-CVS] SVN: [54109] trunk/phase3/includes/OutputPage.php: msg#01487mediawiki-cvs
http://www.mediawiki.org/wiki/Special:Code/MediaWiki/54109 Revision: 54109 Author: tparscal Date: 2009-07-31 17:18:49 +0000 (Fri, 31 Jul 2009) Log Message: ----------- Added evil hack for Opera projection css media mode compatibility. Modified Paths: -------------- trunk/phase3/includes/OutputPage.php Modified: trunk/phase3/includes/OutputPage.php =================================================================== --- trunk/phase3/includes/OutputPage.php 2009-07-31 16:49:28 UTC (rev 54108) +++ trunk/phase3/includes/OutputPage.php 2009-07-31 17:18:49 UTC (rev 54109) @@ -1894,6 +1894,14 @@ */ public function addStyle( $style, $media='', $condition='', $dir='' ) { $options = array(); + // In Opera, fullscreen mode is treated as projection mode, and it causes + // styles set for screen to not be loaded - thus breaking the page - so + // we can just append projection to the media attribute when it's screen + // so the browser is happy and - with no side-effects on other browsers. + // Also - even though we expect the media type to be lowercase, but here + // we force it to lowercase to be safe. + if ( strtolower( $media ) == 'screen' ) + $media .= ',projection'; if( $media ) $options['media'] = $media; if( $condition ) _______________________________________________ MediaWiki-CVS mailing list MediaWiki-CVS@xxxxxxxxxxxxxxxxxxx https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs
|
|
||||||||||||||||||||||||||
|
|
|
| News | Mail Home | sitemap | FAQ | advertise |