See #808 - adds a test case to prevent regressions.
authorJakub Pawlowicz <contact@jakubpawlowicz.com>
Fri, 23 Dec 2016 21:00:43 +0000 (22:00 +0100)
committerJakub Pawlowicz <contact@jakubpawlowicz.com>
Fri, 23 Dec 2016 21:00:43 +0000 (22:00 +0100)
test/optimizer/advanced-test.js

index 33c842f..01cdbb0 100644 (file)
@@ -11,6 +11,10 @@ vows.describe('advanced optimizer')
       'overriding by !important': [
         'a{margin:0}a{margin:0!important}',
         'a{margin:0!important}'
+      ],
+      'shorthands and no space after closing brace': [
+        '.a{background:rgba(0,0,0,0)url(//example.com/a.jpg)}',
+        '.a{background:url(//example.com/a.jpg) rgba(0,0,0,0)}'
       ]
     }, { advanced: true })
   )