varshluck / closure-stylesheets

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

Browser conditioning with short annotation #11

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I would like to write browser conditioning with less coding.
This seems nice to me,

.item {
  color: green;
  /* @if (IE6) */ color: red;
}

if (--define IE6), two `color' will be output.

Closure Stylesheets would reach more complex web project than usual, so browser 
conditioning would be more needed in order to handle performance issues.

What do you think?

Original issue reported on code.google.com by ThePigLo...@gmail.com on 2 Feb 2012 at 10:29

GoogleCodeExporter commented 9 years ago
I rethink and it is enough specification that Closure Stylesheets does not 
support nesting @if directive in CSS block. It will complicate gss code.

Original comment by ThePigLo...@gmail.com on 20 Feb 2013 at 8:58