AngleSharp by Florian Rappl

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

.NET API 1,172,480 bytes

 CssMaxHeightProperty

Information can be found on MDN: https://developer.mozilla.org/en-US/docs/Web/CSS/max-height
using AngleSharp.Css; using AngleSharp.Extensions; namespace AngleSharp.Dom.Css { internal sealed class CssMaxHeightProperty : CssProperty, ICssMaxHeightProperty, ICssProperty { internal static readonly Length? Default = null; internal static readonly IValueConverter<Length?> Converter = Converters.LengthOrPercentConverter.ToNullable().Or(Keywords.None, Default); private Length? _mode; public Length? Limit => _mode; internal CssMaxHeightProperty(CssStyleDeclaration rule) : base(PropertyNames.MaxHeight, rule, PropertyFlags.Animatable) { Reset(); } public void SetLimit(Length? mode) { _mode = mode; } internal override void Reset() { _mode = Default; } protected override bool IsValid(ICssValue value) { return Converter.TryConvert(value, SetLimit); } } }