Created
July 19, 2011 15:51
-
-
Save BruceHubbard/1092856 to your computer and use it in GitHub Desktop.
SASS IE Filter problem
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
The filter property below is causing a parse error. | |
*/ | |
.push-status.cancelled .progress { | |
filter: progid:DXImageTransform.Microsoft.gradient(startColorStr='#00E85734', EndColorStr='#00E85734'); | |
} | |
/* When I ran it I got this (keep reading to see my solution */ | |
/* An error occurred while compiling the Sass file. Details: | |
System.MissingMethodException: undefined method `chr' for "(":String | |
at ℑℜ:_to_tree:303:177:C:\Users\Administrator\AppData\Local\Microsoft\VisualStudio\10.0\Extensions\Mindscape\Mindscape Web Workbench\1.0.161.18005\CustomTool\Sass\sass\lib/sass/../sass/engine.rb(Closure , Object , Proc ) | |
at Microsoft.Scripting.Interpreter.LightLambda.Run2[T0,T1,TRet](T0 arg0, T1 arg1) | |
at IronRuby.Runtime.Calls.RubyObjectMethodDispatcherWithScope.Invoke[TScope](CallSite callSite, TScope scope, Object self) | |
at ℑℜ:_render:290:176:C:\Users\Administrator\AppData\Local\Microsoft\VisualStudio\10.0\Extensions\Mindscape\Mindscape Web Workbench\1.0.161.18005\CustomTool\Sass\sass\lib/sass/../sass/engine.rb(Closure , Object , Proc ) | |
at Microsoft.Scripting.Interpreter.LightLambda.Run2[T0,T1,TRet](T0 arg0, T1 arg1) | |
at IronRuby.Runtime.Calls.RubyObjectMethodDispatcherWithScope.Invoke[TScope](CallSite callSite, TScope scope, Object self) | |
at ℑℜ:render:237:174:C:\Users\Administrator\AppData\Local\Microsoft\VisualStudio\10.0\Extensions\Mindscape\Mindscape Web Workbench\1.0.161.18005\CustomTool\Sass\sass\lib/sass/../sass/engine.rb(Closure , Object , Proc ) | |
at Microsoft.Scripting.Interpreter.LightLambda.Run2[T0,T1,TRet](T0 arg0, T1 arg1) | |
at IronRuby.Runtime.Calls.RubyObjectMethodDispatcherWithScope.Invoke[TScope](CallSite callSite, TScope scope, Object self) | |
at ℑℜ:compile:30:165:C:\Users\Administrator\AppData\Local\Microsoft\VisualStudio\10.0\Extensions\Mindscape\Mindscape Web Workbench\1.0.161.18005\CustomTool\Sass\sass\lib\sass.rb(Closure , Object , Proc , Object , Object ) | |
at Microsoft.Scripting.Interpreter.LightLambda.Run4[T0,T1,T2,T3,TRet](T0 arg0, T1 arg1, T2 arg2, T3 arg3) | |
at System.Dynamic.UpdateDelegates.UpdateAndExecute4[T0,T1,T2,T3,TRet](CallSite site, T0 arg0, T1 arg1, T2 arg2, T3 arg3) | |
at Microsoft.Scripting.Interpreter.DynamicInstruction`5.Run(InterpretedFrame frame) | |
at Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame) | |
at Microsoft.Scripting.Interpreter.LightLambda.Run2[T0,T1,TRet](T0 arg0, T1 arg1) | |
at IronRuby.Runtime.RubyScriptCode.Run(Scope scope, Boolean bindGlobals) | |
at IronRuby.Runtime.RubyScriptCode.Run(Scope scope) | |
at Microsoft.Scripting.SourceUnit.Execute(Scope scope, ErrorSink errorSink) | |
at Microsoft.Scripting.Hosting.ScriptSource.Execute(ScriptScope scope) | |
at Microsoft.Scripting.Hosting.ScriptEngine.Execute(String expression, ScriptScope scope) | |
at Mindscape.VisualSass.Integration.CustomTool.ScssGenerator.Compile(String scss) | |
*/ | |
/* It took me a while to find the problem since there was no line number and the error | |
message wasn't helpful. I ran the same scss in Sass 3.1.4 via command line/Ruby and | |
it ran fine. To solve it I quoted the whole value and then used the unquote method: */ | |
.push-status.cancelled .progress { | |
filter: unquote("progid:DXImageTransform.Microsoft.gradient(startColorStr='#00E85734', EndColorStr='#00E85734')"); | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment