CssEmptyCellsProperty
Information can be found on MDN:
https://developer.mozilla.org/en-US/docs/Web/CSS/empty-cells
Gets if borders and backgrounds should be drawn like
in a normal cells. Otherwise no border or backgrounds
should be drawn.
using AngleSharp.Css;
using AngleSharp.Extensions;
namespace AngleSharp.Dom.Css
{
internal sealed class CssEmptyCellsProperty : CssProperty
{
internal CssEmptyCellsProperty(CssStyleDeclaration rule)
: base(PropertyNames.EmptyCells, rule, PropertyFlags.Inherited)
{
}
protected override object GetDefault(IElement element)
{
return true;
}
protected override object Compute(IElement element)
{
return Converters.EmptyCellsConverter.Convert(base.Value);
}
protected override bool IsValid(ICssValue value)
{
return Converters.EmptyCellsConverter.Validate(value);
}
}
}