CssBorderTopLeftRadiusProperty
Information can be found on MDN:
https://developer.mozilla.org/en-US/docs/Web/CSS/border-top-left-radius
using AngleSharp.Css;
using AngleSharp.Extensions;
namespace AngleSharp.Dom.Css
{
internal sealed class CssBorderTopLeftRadiusProperty : CssProperty
{
internal CssBorderTopLeftRadiusProperty(CssStyleDeclaration rule)
: base(PropertyNames.BorderTopLeftRadius, rule, PropertyFlags.Animatable)
{
}
protected override object GetDefault(IElement element)
{
return Length.Zero;
}
protected override object Compute(IElement element)
{
return Converters.BorderRadiusConverter.Convert(base.Value);
}
protected override bool IsValid(ICssValue value)
{
return Converters.BorderRadiusConverter.Validate(value);
}
}
}