rahuljs / minify

Automatically exported from code.google.com/p/minify
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

CSS Compressor should not remove spaces between sibling selectors #225

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Minify version: 2.1.3
PHP version: PHP 5.2.6-1+lenny9 with Suhosin-Patch 0.9.6.2

What steps will reproduce the problem?
1. Attempt to minify CSS with sibling selectors:

div.brother + div { padding-top: 1px; }

Expected output: div.brother + div{padding-top:1px;}

Actual output: div.brother+div{padding-top:1px;}

Browsers don't recognize CSS Sibling selector unless there is a space betwixt 
the elements.

Original issue reported on code.google.com by hou...@gmail.com on 9 Mar 2011 at 2:23

GoogleCodeExporter commented 9 years ago
These spaces are not required in any spec I've seen and our output matches 
YUICompressor.

Please send a URL If you find this in a CSS spec or browser bug, or produce a 
test page if you've discovered a new browser bug.

Original comment by mrclay....@gmail.com on 9 Mar 2011 at 3:41