varshluck / closure-stylesheets

Automatically exported from code.google.com/p/closure-stylesheets
Apache License 2.0
0 stars 0 forks source link

Compiler does not handle backslashes properly #20

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Discovered when trying to compress output from Twitter Bootstrap (likely 
affects lots of other users too).

Michael Bolin addressed this issue in this thread but I don't see a fix ever 
being checked in:

http://stackoverflow.com/questions/8453719/closure-stylesheets-parse-error-with-
twitters-bootstrap-css

Input:
.test{ font-size:20px;outline:thin dotted \9; }

Output
GssParserException: Parse error in test at line 1 column 44

Original issue reported on code.google.com by ori.schw...@gmail.com on 30 May 2012 at 5:58

GoogleCodeExporter commented 9 years ago
Can't you use a star instead of the backslash? As far as I can see, 
Closure-Stylesheets doesn't have a problem with a star, and the IE hack should 
work with any prepended character, not only a blackslash, see 
http://en.wikipedia.org/wiki/CSS_filter#Star_hack.

Original comment by oliver.s...@googlemail.com on 24 Jun 2012 at 12:31

GoogleCodeExporter commented 9 years ago
* hack works for: IE8 Quirks, IE8 IE7 Standards, IE7 Quirks, IE7 IE7 Standards, 
IE6
* hack DOES NOT WORK for: IE8 IE8 Standards
\9 hack WORKS for: IE8 IE8 Standards, IE8 IE7 Standards, IE8 Quirks mode, IE7 
Quirks, IE7 Standards (all varieties of IE8), IE6

http://webdood.com/?p=57

Original comment by nix...@gmail.com on 27 Jul 2012 at 4:01