diff --git a/src/AngleSharp.Css/Parser/Micro/ColorParser.cs b/src/AngleSharp.Css/Parser/Micro/ColorParser.cs index bffb1b37..8a679951 100644 --- a/src/AngleSharp.Css/Parser/Micro/ColorParser.cs +++ b/src/AngleSharp.Css/Parser/Micro/ColorParser.cs @@ -214,7 +214,7 @@ static class ColorParser { if (unit.Dimension == "%") { - return (Byte)(255f / 100f * value); + return (Byte)((255f * value) / 100f); } else if (unit.Dimension == String.Empty) {