CssOutlineWidthProperty
More information available:
https://developer.mozilla.org/en-US/docs/Web/CSS/outline-width
using AngleSharp.Css;
namespace AngleSharp.Dom.Css
{
internal sealed class CssOutlineWidthProperty : CssProperty, ICssOutlineWidthProperty, ICssProperty
{
internal static readonly Length Default = Length.Medium;
internal static readonly IValueConverter<Length> Converter = Converters.LineWidthConverter;
private Length _width;
public Length Width => _width;
internal CssOutlineWidthProperty(CssStyleDeclaration rule)
: base(PropertyNames.OutlineWidth, rule, PropertyFlags.Animatable)
{
Reset();
}
public void SetWidth(Length width)
{
_width = width;
}
internal override void Reset()
{
_width = Length.Medium;
}
protected override bool IsValid(ICssValue value)
{
return Converter.TryConvert(value, SetWidth);
}
}
}