internal override void ApplyStyle(HtmlNode node, List<HtmlStyle> htmlStyles)
 {
     if (IsValidNode(node))
     {
         node.CopyHtmlStyles(htmlStyles, CalculateSpecificity(SelectorType.Global));
     }
 }
        internal override void ApplyStyle(HtmlNode node, List<HtmlStyle> htmlStyles)
        {
            string id;

            if (node.Attributes.TryGetValue(key, out id))
            {
                if (string.Compare(currentSelector, id, StringComparison.InvariantCultureIgnoreCase) == 0)
                {
                    node.CopyHtmlStyles(htmlStyles, CalculateSpecificity(SelectorType.Identity));
                }
            }

        }
 internal override void ApplyStyle(HtmlNode node, List<HtmlStyle> htmlStyles)
 {
     node.CopyHtmlStyles(htmlStyles, CalculateSpecificity(SelectorType.PseudoClass));
 }