diff --git a/src/AngleSharp.Css/Values/Primitives/Color.cs b/src/AngleSharp.Css/Values/Primitives/Color.cs index 490b99c9..9f2ea65c 100644 --- a/src/AngleSharp.Css/Values/Primitives/Color.cs +++ b/src/AngleSharp.Css/Values/Primitives/Color.cs @@ -10,7 +10,7 @@ namespace AngleSharp.Css.Values /// Represents a color value. /// [StructLayout(LayoutKind.Explicit, Pack = 1, CharSet = CharSet.Unicode)] - struct Color : IEquatable, IComparable, ICssPrimitiveValue + public struct Color : IEquatable, IComparable, ICssPrimitiveValue { #region Basic colors @@ -337,7 +337,7 @@ public static Color FromHwba(Double h, Double w, Double b, Double alpha) var green = 0.0; var blue = 0.0; - if (ratio < 1.0) + if (ratio < 1.0) { w *= ratio; b *= ratio; @@ -354,7 +354,7 @@ public static Color FromHwba(Double h, Double w, Double b, Double alpha) var v = 1.0 - b; var n = w + f * (v - w); - switch (p) + switch (p) { default: case 6: