CssCaptionSideProperty
Information can be found on MDN:
https://developer.mozilla.org/en-US/docs/Web/CSS/caption-side
Gets if the caption box will be above the table.
Otherwise the caption box will be below the table.
using AngleSharp.Css;
using AngleSharp.Extensions;
namespace AngleSharp.Dom.Css
{
internal sealed class CssCaptionSideProperty : CssProperty
{
internal CssCaptionSideProperty(CssStyleDeclaration rule)
: base(PropertyNames.CaptionSide, rule, PropertyFlags.None)
{
}
protected override object GetDefault(IElement element)
{
return true;
}
protected override object Compute(IElement element)
{
return Converters.CaptionSideConverter.Convert(base.Value);
}
protected override bool IsValid(ICssValue value)
{
return Converters.CaptionSideConverter.Validate(value);
}
}
}