Package booton.css

Examples of booton.css.MyCSS$Rule


        assert css.no(Mozilla);
    }

    @Test
    public void stretch() throws Exception {
        MyCSS css = new MyCSS();
        css.display.flex().alignItems.stretch();

        assert css.has("align-items", "stretch");
        assert css.has("-webkit-align-items", "stretch");
        assert css.has("-webkit-box-align", "stretch");
        assert css.has("-ms-flex-align", "stretch");
        assert css.no(Mozilla);
    }
View Full Code Here


*/
public class BorderTest {

    @Test
    public void width() throws Exception {
        MyCSS css = new MyCSS();
        css.border.width(2, em);

        assert css.border.top.width().equals("2em");
        assert css.border.right.width().equals("2em");
        assert css.border.bottom.width().equals("2em");
        assert css.border.left.width().equals("2em");
        assert css.has("border-width", "2em");
    }
View Full Code Here

        assert css.has("border-width", "2em");
    }

    @Test
    public void style() throws Exception {
        MyCSS css = new MyCSS();
        css.border.solid();

        assert css.border.top.style() == Solid;
        assert css.border.left.style() == Solid;
        assert css.border.bottom.style() == Solid;
        assert css.border.right.style() == Solid;
        assert css.has("border-style", "solid");
    }
View Full Code Here

        assert css.has("border-style", "solid");
    }

    @Test
    public void color() throws Exception {
        MyCSS css = new MyCSS();
        css.border.color(White);

        assert css.border.top.color() == White;
        assert css.border.left.color() == White;
        assert css.border.bottom.color() == White;
        assert css.border.right.color() == White;
        assert css.has("border-color", "white");
    }
View Full Code Here

        assert css.has("border-color", "white");
    }

    @Test
    public void chain() throws Exception {
        MyCSS css = new MyCSS();
        css.border.solid().width(2, em).color(Black);

        assert css.has("border", "2em solid black");
    }
View Full Code Here

        assert css.has("border", "2em solid black");
    }

    @Test
    public void chainOrder() throws Exception {
        MyCSS css = new MyCSS();
        css.border.color(Black).solid().width(2, em);

        assert css.has("border", "2em solid black");
    }
View Full Code Here

        assert css.has("border", "2em solid black");
    }

    @Test
    public void top() throws Exception {
        MyCSS css = new MyCSS();
        css.border.top.solid().width(1, px).color(Black);

        assert css.border.top.color() == Black;
        assert css.border.top.style() == Solid;
        assert css.border.top.width().equals("1px");
        assert css.has("border-top", "1px solid black");
    }
View Full Code Here

    private Position pos = new Position(one, two);

    @Test
    public void base() throws Exception {
        MyCSS css = new MyCSS();
        css.background.image(new RadialGradient().color(black, white));

        assert css.countProperty() == 2;
        assert css.has("background-image", "radial-gradient(black,white)");
        assert css.has("background-image", "-webkit-radial-gradient(black,white)");
    }
View Full Code Here

        assert css.has("background-image", "-webkit-radial-gradient(black,white)");
    }

    @Test
    public void colors() throws Exception {
        MyCSS css = new MyCSS();
        css.background.image(new RadialGradient().color(black, white, black));

        assert css.countProperty() == 2;
        assert css.has("background-image", "radial-gradient(black,white,black)");
        assert css.has("background-image", "-webkit-radial-gradient(black,white,black)");
    }
View Full Code Here

        assert css.has("background-image", "-webkit-radial-gradient(black,white,black)");
    }

    @Test
    public void percentage() throws Exception {
        MyCSS css = new MyCSS();
        css.background.image(new RadialGradient().color(black, 10).color(white, 90));

        assert css.countProperty() == 2;
        assert css.has("background-image", "radial-gradient(black 10%,white 90%)");
        assert css.has("background-image", "-webkit-radial-gradient(black 10%,white 90%)");
    }
View Full Code Here

TOP

Related Classes of booton.css.MyCSS$Rule

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.