Ticket #2495387 (checkedin defect)

Reporter


msznapka
Opened: 01/27/09
Last modified: 05/15/10
Status: checkedin
Type: defect

Owner


Stoyan Stefanov
Target Release: 2.4.3
Priority: P3 (normal)
Summary: compressor removes beginning of css
Description:

Imagine simple css:

@charset 'utf-8';
@media all {
body {
}
body {
background-color: gold;
}
}

compress it:
java -jar yuicompressor-2.4.2.jar sample.css -o sample-min.css

result:
body{background-color:gold;}}

expected:
@charset 'utf-8';@media all {body{background-color:gold;}}

Type: defect Observed in Version: 2.4.1
Component: YUICompressor Severity: S3 (normal)
Assigned To: Stoyan Stefanov Target Release: 2.4.3
Location: Priority: P3 (normal)
Tags: Relates To:
Browsers: N/A
URL:
Test Information:

Attachments

Attachment #1: sample.css (download)

Change History

George

YUI Developer

Posted: 09/23/09

George

YUI Developer

Posted: 01/30/10

George

YUI Developer

Posted: 02/8/10

Stoyan Stefanov

YUI Developer

Posted: 05/15/10
  • browser changed to N/A
  • status changed from assigned to checkedin

Thanks, fixed in git. The empty rule was causing the strip of @charset