Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP


(Semi-valid CSS) IE filters can't be parsed #65

QuLogic opened this Issue · 3 comments

3 participants


IE had these filter things, and support for them is enabled in Compass by default. They look like:

  filter: progid:DXImageTransform.Microsoft.gradient(gradientType=0,
    startColorstr='#FFFFFFFF', endColorstr='#FF000000');

But this totally trips up the parser.

Fortunately, versions of IE that used this sort of thing are dying out. I don't know whether the work required to fix this would be small enough to justify fixing it.


Let me know if you figure out a good way of parsing these! I'm working on a CSS3 parser of my own and IE filters are causing a lot of grief.


Looks like Ruby outright cheats and makes = an operator, which just returns its operands joined by =.


They can be parsed now! progid:whatever(...) is treated as opaque, just like expression().

@eevee eevee closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.