Package booton.css

Examples of booton.css.MyCSS


        assert css.noVendor();
    }

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

        assert css.has("display", "inline");
        assert css.noVendor();
    }
View Full Code Here


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

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

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

        assert css.noVendor();
    }

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

        assert css.has("display", "inline-block");
        assert css.noVendor();
    }
View Full Code Here

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

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

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

        assert css.noVendor();
    }

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

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

        assert css.has("background-image", "-webkit-linear-gradient(black 10%,white 90%)");
    }

    @Test
    public void length() throws Exception {
        MyCSS css = new MyCSS();
        css.background.image(new LinearGradient().color(black, one).color(white, two));

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

        assert css.has("background-image", "-webkit-linear-gradient(black 10px,white 20em)");
    }

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

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

        assert css.no(Mozilla);
    }

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

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

*/
public class FlexJustifyContentTest {

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

        assert css.has("justify-content", "flex-start");
        assert css.has("-webkit-justify-content", "flex-start");
        assert css.has("-webkit-box-pack", "start");
        assert css.has("-ms-flex-pack", "start");
        assert css.no(Mozilla);
    }
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.