AngleSharp by Florian Rappl

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

.NET API 1,171,968 bytes

 CssBorderLeftProperty

More information available at: https://developer.mozilla.org/en-US/docs/Web/CSS/border-left
using AngleSharp.Css; using System; using System.Collections.Generic; namespace AngleSharp.Dom.Css { internal sealed class CssBorderLeftProperty : CssShorthandProperty, ICssBorderProperty, ICssProperty, ICssBorderWidthProperty, ICssBorderStyleProperty, ICssBorderColorProperty { private readonly CssBorderLeftColorProperty _color; private readonly CssBorderLeftStyleProperty _style; private readonly CssBorderLeftWidthProperty _width; public Length Width => _width.Width; public Color Color => _color.Color; public LineStyle Style => _style.Style; internal CssBorderLeftProperty(CssStyleDeclaration rule) : base(PropertyNames.BorderLeft, rule, PropertyFlags.Animatable) { _color = Get<CssBorderLeftColorProperty>(); _style = Get<CssBorderLeftStyleProperty>(); _width = Get<CssBorderLeftWidthProperty>(); } 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() }); } } }