[BUGFIX] Ensure correct order of @-rules in CSS 51/47251/5
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:40 +0000 (10:34 +0100)
commitc0c8eace4e23d99db1664f505c5b0f0bb4f5d922
treeb5904be17ccf6c1b1370893d34b197068faac55f
parent47157858d3170ffaa72bbd5647e80f096fd2a349
[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/47251
Reviewed-by: Jigal van Hemert <jigal.van.hemert@typo3.org>
Tested-by: Jigal van Hemert <jigal.van.hemert@typo3.org>
Reviewed-by: Michael Oehlhof <typo3@oehlhof.de>
Tested-by: Riccardo De Contardi <erredeco@gmail.com>
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