*/
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';
+ // Even though we expect the media type to be lowercase, but here we
+ // force it to lowercase to be safe.
if( $media )
$options['media'] = $media;
if( $condition )
<head>
<title>MediaWiki <?php echo htmlspecialchars( $wgVersion ) ?></title>
<meta http-equiv='Content-Type' content='text/html; charset=utf-8' />
- <style type='text/css' media='screen, projection'>
+ <style type='text/css' media='screen'>
html, body {
color: #000;
background-color: #fff;
<head>
<title>MediaWiki <?php echo htmlspecialchars( $wgVersion ); ?></title>
<meta http-equiv='Content-Type' content='text/html; charset=utf-8' />
- <style type='text/css' media='screen, projection'>
+ <style type='text/css' media='screen'>
html, body {
color: #000;
background-color: #fff;