CssBorderTopRightRadiusProperty
Information can be found on MDN:
https://developer.mozilla.org/en-US/docs/Web/CSS/border-top-right-radius
using AngleSharp.Css;
using AngleSharp.Css.Values;
using AngleSharp.Extensions;
namespace AngleSharp.Dom.Css
{
internal sealed class CssBorderTopRightRadiusProperty : CssProperty
{
internal CssBorderTopRightRadiusProperty(CssStyleDeclaration rule)
: base(PropertyNames.BorderTopRightRadius, 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(CssValue value)
{
return Converters.BorderRadiusConverter.Validate(value);
}
}
}