[TYPO3-core] RFC: Bugfix #13252: default CSS only loadable for media screen / changed behaviour in 4.3

Ralf Hettinger ng at ralfhettinger.de
Thu Jan 21 22:36:15 CET 2010


Hi Steffen,

Am 21.01.2010 22:18 schrieb Steffen Gebert:
>> Summary of the change of behaviour: Most CSS styles are now by default
>> only valid for media screen, whereas in TYPO3 4.2 they would've been
>> implicitly valid for all media.
>> This affects:
>> - CSS from TYPO3 Core+extensions if TS config.inlineStyle2TempFile is set
>> - CSS included by TS page.includeCSS and page.stylesheet
> Thanks for taking care! This is a great annoyance, as @media doesn't
> work in the stylesheets (not sure, if this only happens with
> EXT:scriptmerger or even without).

It doesn't matter if scriptmerger is in place or not.

> At least media screen by default is the wrong value!

Agreed - at least without an exclamation mark in Update Wizard.

>> Add the new TS properties as described for page.includeCSS to TS
>> properties page.stylesheet and config.inlineStyle2TempFile and set the
>> default to media 'all' for the 3 properties.
> Isn't it possible without adding new properties?

I'd think that this will have other side-effects, since the default
value $media = 'screen' in t3lib_PageRenderer, method addCssFile needs
to be changed.

Cheers
Ralf


More information about the TYPO3-team-core mailing list