CssVisibilityProperty
Information can be found on MDN:
https://developer.mozilla.org/en-US/docs/Web/CSS/visibility
Gets the visibility mode.
using AngleSharp.Css;
using AngleSharp.Extensions;
namespace AngleSharp.Dom.Css
{
internal sealed class CssVisibilityProperty : CssProperty
{
internal CssVisibilityProperty(CssStyleDeclaration rule)
: base(PropertyNames.Visibility, rule, PropertyFlags.Inherited | PropertyFlags.Animatable)
{
}
protected override object GetDefault(IElement element)
{
return Visibility.Visible;
}
protected override object Compute(IElement element)
{
return Converters.VisibilityConverter.Convert(base.Value);
}
protected override bool IsValid(ICssValue value)
{
return Converters.VisibilityConverter.Validate(value);
}
}
}