namespace Sandbox.UI; /// /// Everything the style system needs to work out a style /// public interface IStyleTarget { string ElementName { get; } string Id { get; } PseudoClass PseudoClass { get; } IStyleTarget Parent { get; } IReadOnlyList Children { get; } int SiblingIndex { get; } bool HasClasses( string[] classes ); /// /// Returns true if this is ::before or ::after /// internal bool IsBeforeOrAfter => PseudoClass.Contains( PseudoClass.Before ) || PseudoClass.Contains( PseudoClass.After ); }