Bug#699755: yui-compressor: Broken css with @charset

Roman V. Nikolaev rshadow at rambler.ru
Mon Feb 4 16:01:24 UTC 2013


Package: yui-compressor
Version: 2.4.2-2
Severity: normal

I use At-rule @charset for CSS (http://www.w3.org/TR/CSS21/syndata.html#at-
rules). Then I apply compressor for my css file browser get it as broken and
don`t apply any styles.

I think for at-rules yui-compressor must save "\n".

Reproduce:
1. CSS file main.css looks like this:

@charset "UTF-8";
h1 { color: blue }

2.  yui-compressor --type css main.css, you get:

@charset "UTF-8";h1{color:blue;}

3. Iceweasel 18.0 don`t apply any styles from main.css



-- System Information:
Debian Release: 6.0.6
  APT prefers stable
  APT policy: (990, 'stable'), (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-4-amd64 (SMP w/2 CPU cores)
Locale: LANG=ru_RU.UTF-8, LC_CTYPE=ru_RU.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages yui-compressor depends on:
ii  default-jre-headless [jav 1:1.6-40       Standard Java or Java compatible R
ii  gcj-4.7-jre-headless [jav 4.7.2-3        Java runtime environment using GIJ
ii  gcj-jre-headless [java5-r 4:4.7.2-1      Java runtime environment using GIJ
ii  java-wrappers             0.1.25         wrappers for java executables
ii  libjargs-java             1.0.0-2        Command-line argument parsing for 
ii  openjdk-6-jre-headless [j 6b27-1.12-1    OpenJDK Java runtime, using Hotspo
ii  sun-java6-jre [java5-runt 6.26-0squeeze1 Sun Java(TM) Runtime Environment (

yui-compressor recommends no packages.

yui-compressor suggests no packages.

-- no debconf information



More information about the pkg-java-maintainers mailing list