AngleSharp by AngleSharp

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

.NET API 1,214,976 bytes

 CompoundSelector

Represents a compound selector, which is a chain of simple selectors that are not separated by a combinator.
using System.IO; namespace AngleSharp.Dom.Css { internal sealed class CompoundSelector : Selectors, ISelector, ICssNode, IStyleFormattable { public bool Match(IElement element) { for (int i = 0; i < _selectors.Count; i++) { if (!_selectors[i].Match(element)) return false; } return true; } public override void ToCss(TextWriter writer, IStyleFormatter formatter) { for (int i = 0; i < _selectors.Count; i++) { writer.Write(_selectors[i].Text); } } } }