CssWordSpacingProperty
Information:
https://developer.mozilla.org/en-US/docs/Web/CSS/word-spacing
Gets if normal inter-word space, as defined by the current font
and/or the browser, is active.
Gets the defined custom spacing, if any.
using AngleSharp.Css;
using AngleSharp.Extensions;
namespace AngleSharp.Dom.Css
{
internal sealed class CssWordSpacingProperty : CssProperty
{
internal CssWordSpacingProperty(CssStyleDeclaration rule)
: base(PropertyNames.WordSpacing, rule, PropertyFlags.Inherited | PropertyFlags.Unitless | PropertyFlags.Animatable)
{
}
protected override object GetDefault(IElement element)
{
return null;
}
protected override object Compute(IElement element)
{
return Converters.OptionalLengthConverter.Convert(base.Value);
}
protected override bool IsValid(ICssValue value)
{
return Converters.OptionalLengthConverter.Validate(value);
}
}
}