AngleSharp by Florian Rappl

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

.NET API 1,229,312 bytes

 CssMaxHeightProperty

Information can be found on MDN: https://developer.mozilla.org/en-US/docs/Web/CSS/max-height Gets the specified max-height of the element. A percentage is calculated with respect to the height of the containing block. If the height of the containing block is not specified explicitly, the percentage value is treated as none.
using AngleSharp.Css; using AngleSharp.Extensions; namespace AngleSharp.Dom.Css { internal sealed class CssMaxHeightProperty : CssProperty { internal CssMaxHeightProperty(CssStyleDeclaration rule) : base(PropertyNames.MaxHeight, rule, PropertyFlags.Animatable) { } protected override object GetDefault(IElement element) { return null; } protected override object Compute(IElement element) { return Converters.OptionalLengthOrPercentConverter.Convert(base.Value); } protected override bool IsValid(CssValue value) { return Converters.OptionalLengthOrPercentConverter.Validate(value); } } }