CSSMin: Trim whitespace from attribute selectors and url tokens
authorFomafix <fomafix@googlemail.com>
Wed, 6 Dec 2017 16:16:41 +0000 (17:16 +0100)
committerKrinkle <krinklemail@gmail.com>
Thu, 22 Feb 2018 23:41:14 +0000 (23:41 +0000)
commit5ca659b287a1ef7755729de60c1bcc5ff4a79c76
treec49e3ee14e00725862cf4e5f11b5057714ce56ae
parente98c1870f427e082782bf562676dd87584389e60
CSSMin: Trim whitespace from attribute selectors and url tokens

* Trim whitespaces after opening and before closing parentheses and
  brackets.
* Ensure by test case that the invalid "url (" will not become the
  valid "url(" by minification.

This change also prevents the parsing problem in Firefox 57.0
https://bugzilla.mozilla.org/1418152 which is fixed in Firefox 57.0.1.

Change-Id: I804477ba7c6363f0e964fc8c7c0bc74d2d4c1a0d
includes/libs/CSSMin.php
tests/phpunit/includes/libs/CSSMinTest.php