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