CssListStyleImageProperty
More information available at
https://developer.mozilla.org/en-US/docs/Web/CSS/list-style-image
Gets the selected image.
using AngleSharp.Css;
using AngleSharp.Extensions;
namespace AngleSharp.Dom.Css
{
internal sealed class CssListStyleImageProperty : CssProperty
{
internal CssListStyleImageProperty(CssStyleDeclaration rule)
: base(PropertyNames.ListStyleImage, rule, PropertyFlags.Inherited)
{
}
protected override object GetDefault(IElement element)
{
return null;
}
protected override object Compute(IElement element)
{
return Converters.OptionalImageSourceConverter.Convert(base.Value);
}
protected override bool IsValid(CssValue value)
{
return Converters.OptionalImageSourceConverter.Validate(value);
}
}
}