Ticket #2528087 (closed defect)


Matt Ball
Opened: 02/22/11
Last modified: 12/12/12
Status: closed
Type: defect
Resolution: wontfix


Adam Moore
Target Release:
Priority: P3 (normal)
Summary: CSS compression removes significant white space in media queries

This CSS:

@media screen and (-webkit-min-device-pixel-ratio:0) {
button {
padding: 2px 4px;

gets compressed to this:

@media screen and(-webkit-min-device-pixel-ratio:0){button{padding: 2px 4px;

The missing space between the

and the
turns a well-formed media query into a malformed one.

Type: defect Observed in Version: 2.4.2
Component: YUICompressor Severity: S3 (normal)
Assigned To: Adam Moore Target Release:
Location: Priority: P3 (normal)
Tags: css Relates To:
Browsers: All
URL: http://stackoverflow.com/questions/4104004/
Test Information:

Change History

Matt Ball

Posted: 02/22/11

I appear to have incorrectly entered the code blocks in my description. Is there any way for me to edit it?

Adam Moore

YUI Contributor

Posted: 03/1/11
  • priority changed to P3 (normal)
  • status changed from new to accepted

You can just leave an additional comment with the corrected code.

Jenny Donnelly

YUI Developer

Posted: 12/12/12
  • resolution changed to wontfix
  • status changed from accepted to closed

Thank you for your bug report. We are deprecating YUI Compressor in favor of yuglify. Please see our announcement for more information: http://www.yuiblog.com/blog/2012/10/16/state-of-yui-compressor/. We will consider migrating these legacy tickets to GitHub if there are community maintainers willing to step up and own them.