Skip to content

Commit

Permalink
Merge pull request AngleSharp#141 from jogibear9988/patch-1
Browse files Browse the repository at this point in the history
Update ColorParser.cs
  • Loading branch information
FlorianRappl authored Apr 20, 2023
2 parents 2a2f5da + 8ecae08 commit 49b4877
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/AngleSharp.Css/Parser/Micro/ColorParser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit 49b4877

Please sign in to comment.