Package booton.css

Examples of booton.css.MyCSS


        assert css.no(Vendor.Mozilla);
    }

    @Test
    public void colmun() throws Exception {
        MyCSS css = new MyCSS();
        css.display.flex().direction.column();

        assert css.has("flex-direction", "column");
        assert css.has("-webkit-flex-direction", "column");
        assert css.has("-webkit-box-direction", "normal");
        assert css.has("-webkit-box-orient", "vertical");
        assert css.has("-ms-flex-direction", "column");
        assert css.no(Vendor.Mozilla);
    }
View Full Code Here


        assert css.no(Vendor.Mozilla);
    }

    @Test
    public void colmunReverse() throws Exception {
        MyCSS css = new MyCSS();
        css.display.flex().direction.columnReverse();

        assert css.has("flex-direction", "column-reverse");
        assert css.has("-webkit-flex-direction", "column-reverse");
        assert css.has("-webkit-box-direction", "reverse");
        assert css.has("-webkit-box-orient", "vertical");
        assert css.has("-ms-flex-direction", "column-reverse");
        assert css.no(Vendor.Mozilla);
    }
View Full Code Here

*/
public class TransformTest {

    @Test
    public void rotate() throws Exception {
        MyCSS css = new MyCSS();
        css.transform.rotate(10, deg);

        assert css.has("-webkit-transform", "rotate(10deg)");
        assert css.has("transform", "rotate(10deg)");
        assert css.countProperty() == 2;
    }
View Full Code Here

        assert css.countProperty() == 2;
    }

    @Test
    public void rotateX() throws Exception {
        MyCSS css = new MyCSS();
        css.transform.rotateX(10, deg);

        assert css.has("-webkit-transform", "rotateX(10deg)");
        assert css.has("transform", "rotateX(10deg)");
        assert css.countProperty() == 2;
    }
View Full Code Here

        assert css.countProperty() == 2;
    }

    @Test
    public void rotateY() throws Exception {
        MyCSS css = new MyCSS();
        css.transform.rotateY(10, deg);

        assert css.has("-webkit-transform", "rotateY(10deg)");
        assert css.has("transform", "rotateY(10deg)");
        assert css.countProperty() == 2;
    }
View Full Code Here

        assert css.countProperty() == 2;
    }

    @Test
    public void rotateZ() throws Exception {
        MyCSS css = new MyCSS();
        css.transform.rotateZ(10, deg);

        assert css.has("-webkit-transform", "rotateZ(10deg)");
        assert css.has("transform", "rotateZ(10deg)");
        assert css.countProperty() == 2;
    }
View Full Code Here

        assert css.has("border-top", "1px solid black");
    }

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

        assert css.border.top.color() == Black;
        assert css.has("border-top-color", "black");
    }
View Full Code Here

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

    @Test
    public void radius() throws Exception {
        MyCSS css = new MyCSS();
        css.border.radius(5, px);

        assert css.has("border-radius", "5px");
    }
View Full Code Here

        assert css.has("border-radius", "5px");
    }

    @Test
    public void radiusTop() throws Exception {
        MyCSS css = new MyCSS();
        css.border.top.radius(5, px);

        assert css.has("border-top-left-radius", "5px");
        assert css.has("border-top-right-radius", "5px");
    }
View Full Code Here

*/
public class FlexWrapTest {

    @Test
    public void noWrap() throws Exception {
        MyCSS css = new MyCSS();
        css.display.flex().wrap.disable();

        assert css.has("flex-wrap", "nowrap");
        assert css.has("-webkit-flex-wrap", "nowrap");
        assert css.no(Mozilla, IE);
    }
View Full Code Here

TOP

Related Classes of booton.css.MyCSS

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.