AngleSharp by Florian Rappl

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

.NET API 1,172,480 bytes

 CssBorderImageSourceProperty

More information available at: https://developer.mozilla.org/en-US/docs/Web/CSS/border-image-source
using AngleSharp.Css; using AngleSharp.Css.Values; using AngleSharp.Extensions; namespace AngleSharp.Dom.Css { internal sealed class CssBorderImageSourceProperty : CssProperty, ICssBorderImageSourceProperty, ICssProperty { internal static readonly IImageSource Default = null; internal static readonly IValueConverter<IImageSource> Converter = Converters.ImageSourceConverter.Or(Keywords.None, Default); private IImageSource _image; public IImageSource Image => _image; internal CssBorderImageSourceProperty(CssStyleDeclaration rule) : base(PropertyNames.BorderImageSource, rule, PropertyFlags.None) { Reset(); } private void SetImages(IImageSource image) { _image = image; } internal override void Reset() { _image = Default; } protected override bool IsValid(ICssValue value) { return Converter.TryConvert(value, SetImages); } } }