BarryCarlyon / minify

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

Compressed CSS that contains @charset does not validate #172

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Minify version: 2.1.3
PHP version: 5.3.1 (Mac OS 10.6.3)

What steps will reproduce the problem?
1. compress files that contain @charset

Expected output:

Valid CSS data.

Actual output:

The compressed CSS contains errors (taken from the W3C CSS Validation Service):

9        The @charset rule may only occur at the start of the style sheet.
Please check that there are no spaces before it.  @charset "UTF-8";
27      Parse Error }@charset "ISO-8859-1";
27  body    Property overflow-y doesn't exist in CSS level 2.1 but exists in
: scroll scroll
34      Parse Error }@charset "UTF-8";
67      Parse Error }@charset "UTF-8";

The attached CSS file contains all the compressed data.

Original issue reported on code.google.com by mburger313@gmail.com on 18 Apr 2010 at 9:02

Attachments:

GoogleCodeExporter commented 9 years ago
Sorry, I searched in open issues only. This issue seems to be "invalid".

Original comment by mburger313@gmail.com on 18 Apr 2010 at 9:04

GoogleCodeExporter commented 9 years ago
There's a bit about this in the wiki: http://code.google.com/p/minify/wiki/
CommonProblems#Character_Encodings

Original comment by mrclay....@gmail.com on 18 Apr 2010 at 10:47