Package booton.css

Examples of booton.css.MyCSS$Rule


        assert css.no(Mozilla);
    }

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

        assert css.has("justify-content", "space-around");
        assert css.has("-webkit-justify-content", "space-around");
        assert css.has("-webkit-box-pack", "justify");
        assert css.has("-ms-flex-pack", "justify");
        assert css.no(Mozilla);
    }
View Full Code Here


        assert css.no(Mozilla);
    }

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

        assert css.has("justify-content", "space-between");
        assert css.has("-webkit-justify-content", "space-between");
        assert css.has("-webkit-box-pack", "justify");
        assert css.has("-ms-flex-pack", "justify");
        assert css.no(Mozilla);
    }
View Full Code Here

    private Numeric two = new Numeric(2, em);

    @Test
    public void none() throws Exception {
        MyCSS css = new MyCSS();
        css.box.width(one);

        assert css.has("width", "1px");
        assert css.no(IE, Mozilla, Webkit);
    }
View Full Code Here

        assert css.no(IE, Mozilla, Webkit);
    }

    @Test
    public void add() throws Exception {
        MyCSS css = new MyCSS();
        css.box.width(one.add(two));

        assert css.has("width", "-webkit-calc(1px + 2em)");
        assert css.has("width", "calc(1px + 2em)");
        assert css.no(IE, Mozilla);
    }
View Full Code Here

        assert css.no(IE, Mozilla);
    }

    @Test
    public void inPrefixedProperty() throws Exception {
        MyCSS css = new MyCSS();
        css.transform.translateY(one.add(two));

        assert css.has("-webkit-transform", "translateY(-webkit-calc(1px + 2em))");
        assert css.has("transform", "translateY(calc(1px + 2em))");
        assert css.countProperty() == 2;
    }
View Full Code Here

        assert css.countProperty() == 2;
    }

    @Test
    public void noneInPrefixedProperty() throws Exception {
        MyCSS css = new MyCSS();
        css.transform.translateY(one);

        assert css.has("-webkit-transform", "translateY(1px)");
        assert css.has("transform", "translateY(1px)");
        assert css.countProperty() == 2;
    }
View Full Code Here

*/
public class FlexAlignItemsTest {

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

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

        assert css.no(Mozilla);
    }

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

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

        assert css.no(Mozilla);
    }

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

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

        assert css.no(Mozilla);
    }

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

        assert css.has("align-items", "baseline");
        assert css.has("-webkit-align-items", "baseline");
        assert css.has("-webkit-box-align", "baseline");
        assert css.has("-ms-flex-align", "baseline");
        assert css.no(Mozilla);
    }
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.