csscomb / csscomb.js

CSS coding style formatter
http://csscomb.com/
MIT License
3.29k stars 457 forks source link

TypeError for IE7 hack style #428

Closed markbrouch closed 5 years ago

markbrouch commented 9 years ago

I have a somewhat strange use case where I need to include the following style as an IE7 hack:

.ie7 a {
  noFocusLine:expression(this.hideFocus=true)
}

However, this causes the following error when combing:

TypeError: block.is is not a function

Since I don't really care about this "property" being combed, it would be great if CSScomb could either do nothing for this type of property or if I could manually encapsulate this line in an ignore block, similar to how eslint works.

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/26935601-typeerror-for-ie7-hack-style?utm_campaign=plugin&utm_content=tracker%2F214563&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F214563&utm_medium=issues&utm_source=github).
jdalton commented 5 years ago

This specific error is resolved in the latest csscomb release.