Index: trunk/phase3/includes/OutputPage.php |
— | — | @@ -1894,6 +1894,14 @@ |
1895 | 1895 | */ |
1896 | 1896 | public function addStyle( $style, $media='', $condition='', $dir='' ) { |
1897 | 1897 | $options = array(); |
| 1898 | + // In Opera, fullscreen mode is treated as projection mode, and it causes |
| 1899 | + // styles set for screen to not be loaded - thus breaking the page - so |
| 1900 | + // we can just append projection to the media attribute when it's screen |
| 1901 | + // so the browser is happy and - with no side-effects on other browsers. |
| 1902 | + // Also - even though we expect the media type to be lowercase, but here |
| 1903 | + // we force it to lowercase to be safe. |
| 1904 | + if ( strtolower( $media ) == 'screen' ) |
| 1905 | + $media .= ',projection'; |
1898 | 1906 | if( $media ) |
1899 | 1907 | $options['media'] = $media; |
1900 | 1908 | if( $condition ) |