less.ruby icon indicating copy to clipboard operation
less.ruby copied to clipboard

@charset support

Open nerkles opened this issue 15 years ago • 5 comments

use of @charset rule causes syntax error.

Rule is documented here: http://www.w3.org/International/questions/qa-css-charset

nerkles avatar Aug 05 '09 17:08 nerkles

I also ran into this. Dreamweaver CS4 adds @charset "UTF-8"; to the top of new CSS files by default, so this causes problems when converting Dreamweaver CSS files to less.

samalone avatar Feb 10 '10 07:02 samalone

Also ran into this. I even tried to take a crack at it but I'm a Perl guy, not Ruby and couldn't figure it out quickly. Upvoting! :)

gphat avatar Feb 11 '10 23:02 gphat

+1

carnesmedia avatar Feb 23 '10 17:02 carnesmedia

Yeah, I'm putting in another vote for @charset support. I get an error when I compile my stylesheet with LESS that reads:

! Syntax Error: on line 1: expected: got " after: @charset

Maybe @charset can be made into a reserved (that is to say, ignored) LESS rule?

bitsandbooks avatar Mar 08 '10 00:03 bitsandbooks

fixed in less.js, which will make its way to the main release soon.

http://github.com/cloudhead/less.js

cloudhead avatar Mar 08 '10 01:03 cloudhead