dvtng / jss

JavaScript library for getting and setting CSS stylesheet rules
335 stars 54 forks source link

!important? #25

Closed jifka closed 10 years ago

jifka commented 10 years ago

Is there a way to apply an !important modifier on a rule? It seems as if this fails to set when I try:

jss.set(".foobar",{"background-color":"#f00 !important"});

Without the !important, it works fine.

editht commented 10 years ago

Thanks for the feedback, JSS has been updated to support the !important modifier in version 0.5.