Bug #90820
closed
CSS/JS compression problem if css is used inline
Added by Timo Poppinga over 4 years ago.
Updated over 4 years ago.
Description
If
TypoScript: config.compressCss = 1
Install Tool [FE][compressionLevel] > 0
and css is inline, it will be compressed and add as binary in the html this does not work.
- Status changed from New to Needs Feedback
Tried with the following TypoScript:
config.compressCss = 1
page.cssInline {
10 = TEXT
10.value = body {background:lime;}
20 = TEXT
20.value = h1 {color: blue;}
}
This creates an external file with .gzip and that content, because of inlineStyleToTempFile. Next I tested with:
config.inlineStyle2TempFile = 0
config.compressCss = 1
page.cssInline {
10 = TEXT
10.value = body {background:lime;}
20 = TEXT
20.value = h1 span {color: blue;}
}
which results in:
<style type="text/css">
/*<![CDATA[*/
<!--
/*additionalTSFEInlineStyle*/
body {background:lime;}h1 span {color: blue;}
-->
/*]]>*/
</style>
which looks fine to me.
How to reproduce your issue? How do you add your inline CSS?
hi i did link this:
page {
includeCSSLibs {
main = EXT:xxxxx/Resources/Public/StyleSheets/main.css
main {
inline = 1
}
}
}
config {
concatenateJs = 1
compressJs= 1
concatenateCss = 1
compressCss = 1
}
and
[FE][compressionLevel] = 9
- Status changed from Needs Feedback to Under Review
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
- Status changed from Resolved to Closed
- Related to Bug #91071: Inline CSS automatically disable "Comments and whitespace" compression added
Also available in: Atom
PDF