AngleSharp by Florian Rappl

<PackageReference Include="AngleSharp" Version="0.8.0" />

.NET API 1,171,968 bytes

 CssLetterSpacingProperty

Information: https://developer.mozilla.org/en-US/docs/Web/CSS/letter-spacing
using AngleSharp.Css; using AngleSharp.Extensions; namespace AngleSharp.Dom.Css { internal sealed class CssLetterSpacingProperty : CssProperty, ICssLetterSpacingProperty, ICssProperty { internal static readonly Length? Default = null; internal static readonly IValueConverter<Length?> Converter = Converters.LengthConverter.ToNullable().Or(Keywords.Normal, Default); private Length? _spacing; public bool IsNormal => !_spacing.HasValue; public Length? Spacing => _spacing; internal CssLetterSpacingProperty(CssStyleDeclaration rule) : base(PropertyNames.LetterSpacing, rule, PropertyFlags.Inherited | PropertyFlags.Unitless) { Reset(); } private void SetSpacing(Length? spacing) { _spacing = spacing; } internal override void Reset() { _spacing = Default; } protected override bool IsValid(ICssValue value) { return Converter.TryConvert(value, SetSpacing); } } }