CssBoxDecorationBreak
More infos can be found on the W3C homepage or
in condensed form at
http://css-infos.net/property/box-decoration-break
Gets if each box is independently wrapped with the border
and padding. Otherwise no border and no padding are inserted
at the break.
using AngleSharp.Css;
using AngleSharp.Extensions;
namespace AngleSharp.Dom.Css
{
internal sealed class CssBoxDecorationBreak : CssProperty
{
internal CssBoxDecorationBreak(CssStyleDeclaration rule)
: base(PropertyNames.BoxDecorationBreak, rule, PropertyFlags.None)
{
}
protected override object GetDefault(IElement element)
{
return false;
}
protected override object Compute(IElement element)
{
return Converters.BoxDecorationConverter.Convert(base.Value);
}
protected override bool IsValid(ICssValue value)
{
return Converters.BoxDecorationConverter.Validate(value);
}
}
}