Esempio n. 1
0
        static void Main(string[] args)
        {
            string html = @"<html><!-- aha --><head><title>Test</title></head><body><br /><a>test</a><input disabled=""true""value=yes type=""checkbox xd""disabled aha>s<b>Bold text</b></body></html>";
            string css  = "a { background-color: red; margin: 1px; color: red; }";

            HTML.Document document = new HTML.Document(html);
            HTML.Utils.Print(document.Children);

            var cssom      = new CSSOM(css, document);
            var renderTree = new RenderTree(cssom);

            Console.ReadKey();
        }
Esempio n. 2
0
 public RenderTree(CSSOM cssom)
 {
     this.Children = this.Build(cssom.Children);
 }