AngleSharp by Florian Rappl

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

.NET API 1,172,480 bytes

 CssBorderBottomProperty

More information available at: https://developer.mozilla.org/en-US/docs/Web/CSS/border-bottom
using AngleSharp.Css; using System; using System.Collections.Generic; namespace AngleSharp.Dom.Css { internal sealed class CssBorderBottomProperty : CssShorthandProperty, ICssBorderProperty, ICssProperty, ICssBorderWidthProperty, ICssBorderStyleProperty, ICssBorderColorProperty { private readonly CssBorderBottomColorProperty _color; private readonly CssBorderBottomStyleProperty _style; private readonly CssBorderBottomWidthProperty _width; public Length Width => _width.Width; public Color Color => _color.Color; public LineStyle Style => _style.Style; internal CssBorderBottomProperty(CssStyleDeclaration rule) : base(PropertyNames.BorderBottom, rule, PropertyFlags.Animatable) { _color = Get<CssBorderBottomColorProperty>(); _style = Get<CssBorderBottomStyleProperty>(); _width = Get<CssBorderBottomWidthProperty>(); } protected override bool IsValid(ICssValue value) { return CssBorderProperty.Converter.TryConvert(value, delegate(Tuple<ICssValue, ICssValue, ICssValue> m) { _width.TrySetValue(m.Item1); _style.TrySetValue(m.Item2); _color.TrySetValue(m.Item3); }); } internal override string SerializeValue(IEnumerable<CssProperty> properties) { if (!IsComplete(properties)) return string.Empty; return string.Format("{0} {1} {2}", new object[3] { _width.SerializeValue(), _style.SerializeValue(), _color.SerializeValue() }); } } }