From 8ecae0825171767cb486d240ec650b6d5aba2134 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jochen=20K=C3=BChner?= Date: Thu, 20 Apr 2023 06:50:44 +0200 Subject: [PATCH] Update ColorParser.cs fix #134 --- src/AngleSharp.Css/Parser/Micro/ColorParser.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {