Browse files

Add a test for multiple @charset declarations in a single file, which…

… is a common error that the compressor can make less broken.
  • Loading branch information...
1 parent 0e290b8 commit fa57046d4b5156a27362badaa00a908f578451e9 isaacs committed Sep 10, 2009
Showing with 16 additions and 0 deletions.
  1. +15 −0 tests/concat-charset.css
  2. +1 −0 tests/concat-charset.css.min
View
15 tests/concat-charset.css
@@ -0,0 +1,15 @@
+/* This is invalid CSS, but frequently happens as a result of concatenation. */
+@charset "utf-8";
+#foo {
+ border-width:1px;
+}
+/*
+Note that this is erroneous!
+The actual CSS file can only have a single charset.
+However, this is the job of the author/application.
+The compressor should not get involved.
+*/
+@charset "another one";
+#bar {
+ border-width:10px;
+}
View
1 tests/concat-charset.css.min
@@ -0,0 +1 @@
+@charset "utf-8";#foo{border-width:1px;}#bar{border-width:10px;}

0 comments on commit fa57046

Please sign in to comment.