Rewrite CSSMin::remap to support multiple url() values in one rule
authorBartosz Dziewoński <matma.rex@gmail.com>
Sat, 9 Nov 2013 17:59:45 +0000 (18:59 +0100)
committerOri.livneh <ori@wikimedia.org>
Fri, 29 Nov 2013 18:23:33 +0000 (18:23 +0000)
commitf3779e067fa6afaaf1de54f9e7cf2554b64261ad
tree69e4a92f76d9bc5249328f69f647efe825bc5f03
parentcdcf0d5ed712cb27b24fa32032964dbb41f795a1
Rewrite CSSMin::remap to support multiple url() values in one rule

Each can be selectively embedded by placing the /* @embed */ comment
just before the url() value. /* @embed */ at the beginning of the rule
affects all url() values appearing in it.

Three changes in existing behavior for previously supported syntax:
* /* @embed */ comments are no longer preserved in output
* rules not terminated by semicolons are correctly supported
* spaces within url() values are correctly supported

Bug: 46757
Bug: 56514
Change-Id: If9082f553fa920c606f12093f39f4a163ebacc32
includes/libs/CSSMin.php
tests/phpunit/includes/libs/CSSMinTest.php