Commit 109e27f5 authored by mrbean-bremen's avatar mrbean-bremen Committed by mrbean-bremen
Browse files

Fixed order of setting parsing context while parsing hex value

- fixes #399
parent 9fc47d84
...@@ -482,8 +482,8 @@ namespace Svg.ExCSS ...@@ -482,8 +482,8 @@ namespace Svg.ExCSS
break; break;
} }
ParseSingleValueHexColor(_buffer.ToString());
SetParsingContext(ParsingContext.InSingleValue); SetParsingContext(ParsingContext.InSingleValue);
ParseSingleValueHexColor(_buffer.ToString());
return ParseSingleValue(token); return ParseSingleValue(token);
} }
......
...@@ -38,7 +38,6 @@ namespace Svg.UnitTests ...@@ -38,7 +38,6 @@ namespace Svg.UnitTests
[TestMethod] [TestMethod]
public void Lexer_ImportantAfterHex_Success() public void Lexer_ImportantAfterHex_Success()
{ {
Assert.Inconclusive("The important after the hex codes is not working at the moment. Re-enable these tests if the issue is resolved (#399)");
//Important should be valid on 3 digit hex //Important should be valid on 3 digit hex
GenerateLexerTestFile("border-top: 1px solid #333 !important;"); GenerateLexerTestFile("border-top: 1px solid #333 !important;");
//Important should be valid on 6 digit hex //Important should be valid on 6 digit hex
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment