AngleSharp by Florian Rappl

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

.NET API 1,172,480 bytes

 CssOrphansProperty

Information can be found on MDN: https://developer.mozilla.org/en-US/docs/Web/CSS/orphans
using AngleSharp.Css; namespace AngleSharp.Dom.Css { internal sealed class CssOrphansProperty : CssProperty, ICssOrphansProperty, ICssProperty { internal static readonly int Default = 2; private int _count; public int Count => _count; internal CssOrphansProperty(CssStyleDeclaration rule) : base(PropertyNames.Orphans, rule, PropertyFlags.Inherited) { Reset(); } public void SetCount(int value) { if (value >= 0) _count = value; } internal override void Reset() { _count = Default; } protected override bool IsValid(ICssValue value) { return Converters.PositiveIntegerConverter.TryConvert(value, SetCount); } } }