CssValue
Represents a CSS value.
namespace AngleSharp.Dom.Css
{
internal sealed class CssValue : ICssValue
{
private readonly CssValueType _type;
private readonly string _text;
public static readonly CssValue Inherit = new CssValue(Keywords.Inherit, CssValueType.Inherit);
public static readonly CssValue Initial = new CssValue(Keywords.Initial, CssValueType.Initial);
internal static readonly CssValue Delimiter = new CssValue("/");
internal static readonly CssValue Separator = new CssValue(",");
public CssValueType Type => _type;
public string CssText => _text;
private CssValue(string text, CssValueType type)
{
_text = text;
_type = type;
}
internal CssValue(string text)
: this(text, CssValueType.Custom)
{
}
}
}