[BUGFIX] Ensure correct order of @-rules in CSS 36/47336/2
authorAndreas Fernandez <a.fernandez@scripting-base.de>
Mon, 14 Mar 2016 13:39:51 +0000 (14:39 +0100)
committerAndreas Fernandez <typo3@scripting-base.de>
Mon, 21 Mar 2016 09:34:56 +0000 (10:34 +0100)
commit681d29d466e368d1913a08038a7bd8ee448b9bd4
treed9afcfed32683c38d5b4c5e26949fe066c1e9dad
parent1e6753a00059fcf3f1b3c8bd4d13ea241c111ee6
[BUGFIX] Ensure correct order of @-rules in CSS

The ResourceCompressor must ensure the correct order of
@-rules, which is:
1. charset
2. namespace
3. import

If the concatenated CSS contains multiple @charset rules, only
the first one is taken into account.

Change-Id: I8c912874d486eac16505884e68a04b0bba400611
Resolves: #55690
Releases: master, 7.6
Reviewed-on: https://review.typo3.org/47336
Reviewed-by: Andreas Fernandez <typo3@scripting-base.de>
Tested-by: Andreas Fernandez <typo3@scripting-base.de>
typo3/sysext/core/Classes/Resource/ResourceCompressor.php
typo3/sysext/core/Tests/Unit/Resource/ResourceCompressorTest.php
typo3/sysext/core/Tests/Unit/Resource/ResourceCompressorTest/Fixtures/charset.css.optimized.css
typo3/sysext/core/Tests/Unit/Resource/ResourceCompressorTest/Fixtures/charset_newline.css