public override void OnValueReady(CssLexer lexer) { // Get the var name: string name = this[0].Text; if (name != null) { Value = lexer.GetVariable(name.ToLower()); } }
public override void OnValueReady(CssLexer lexer) { // Get the var name: string name = base[0].Text; if (name.StartsWith("--")) { name = name.Substring(2); } if (name != null) { Value = lexer.GetVariable(name.ToLower()); } if (Value == null) { Value = new Units.DecimalUnit(0); } }