예제 #1
0
        public StyleRule(string selectorText, IReadOnlyList <CssNode> children)
            : this(CssSelector.Parse(selectorText))
        {
            foreach (var child in children)
            {
                child.Parent = this;

                base.Children.Add(child);
            }
        }
예제 #2
0
 public StyleRule(CssSelector selector)
 {
     Selector = selector;
 }
예제 #3
0
 public StyleRule(string selectorText)
     : this(CssSelector.Parse(selectorText))
 {
 }