sobchenyuk / htmlcompressor

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

only screen and (-o-min-device-pixel-ratio : 3/2) breaks CSS compressor #61

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. add the following code to the css file
/* iPhone 4, Opera Mobile 11 and other high pixel ratio devices ----------- */
@media
only screen and (-webkit-min-device-pixel-ratio: 1.5),
only screen and (-o-min-device-pixel-ratio: 3/2),
only screen and (min--moz-device-pixel-ratio: 1.5),
only screen and (min-device-pixel-ratio: 1.5) {
  /* Styles */
}
2. compress the CSS file

What is the expected output? What do you see instead?

The expected output should be the compressed CSS.
What I see instead is the compessed CSS file is truncated at:
@media only screen and (-webkit-min-device-pixel-ratio:1.5),only screen and 
(-o-min-device-pixel-ratio:3/

What version of the product are you using? On what operating system?
Version: 1.5.2
OS: Windows

Please provide any additional information below.
Originally raised by user of HTML5 Boilerplate at: 
https://github.com/h5bp/mobile-boilerplate/issues/73

Original issue reported on code.google.com by shichuanr on 5 Dec 2011 at 12:39

GoogleCodeExporter commented 8 years ago
This sounds like a bug in CSS compression which is handled by YUI compressor:
http://developer.yahoo.com/yui/compressor/

Original comment by serg472@gmail.com on 5 Dec 2011 at 6:18

GoogleCodeExporter commented 8 years ago
sorry about the confusion, I have submitted at YUI compressor. you can proceed 
to close this issue now.

Original comment by shichuanr on 5 Dec 2011 at 9:11

GoogleCodeExporter commented 8 years ago

Original comment by serg472@gmail.com on 6 Dec 2011 at 12:15