Exemplo n.º 1
0
        public void CssBorderAggregation()
        {
            var expectedCss = "border: 1px solid rgba(0, 0, 0, 1)";
            var context     = BrowsingContext.New(Configuration.Default.WithCss());
            var style       = new CssStyleDeclaration(context);

            style.SetBorderWidth("1px");
            style.SetBorderStyle("solid");
            style.SetBorderColor("black");
            Assert.AreEqual(expectedCss, style.CssText);
        }