Skip to content

Commit 8ecae08

Browse files
authored
Update ColorParser.cs
fix #134
1 parent 2a2f5da commit 8ecae08

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/AngleSharp.Css/Parser/Micro/ColorParser.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ static class ColorParser
214214
{
215215
if (unit.Dimension == "%")
216216
{
217-
return (Byte)(255f / 100f * value);
217+
return (Byte)((255f * value) / 100f);
218218
}
219219
else if (unit.Dimension == String.Empty)
220220
{

0 commit comments

Comments
 (0)