Package booton.css

Examples of booton.css.MyCSS$Stylesheet


        assert css.no(Mozilla, IE);
    }

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

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


        assert css.no(Mozilla, IE);
    }

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

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

*/
public class ColorTest {

    @Test
    public void white() throws Exception {
        MyCSS css = new MyCSS();
        css.font.color(255, 255, 255);

        assert css.has("color", "white");
    }
View Full Code Here

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

    @Test
    public void black() throws Exception {
        MyCSS css = new MyCSS();
        css.font.color(0, 0, 0);

        assert css.has("color", "black");
    }
View Full Code Here

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

    @Test
    public void hsl() throws Exception {
        MyCSS css = new MyCSS();
        css.font.color(255, 0, 0);

        assert css.has("color", "hsl(0,100%,50%)");
    }
View Full Code Here

        assert css.has("color", "hsl(0,100%,50%)");
    }

    @Test
    public void hsla() throws Exception {
        MyCSS css = new MyCSS();
        css.font.color(255, 255, 255, 0.9);

        assert css.has("color", "hsla(0,0%,100%,0.9)");
    }
View Full Code Here

        assert css.has("color", "hsla(0,0%,100%,0.9)");
    }

    @Test
    public void zeroAlpha() throws Exception {
        MyCSS css = new MyCSS();
        css.font.color(255, 255, 255, 0);

        assert css.has("color", "hsla(0,0%,100%,0)");
    }
View Full Code Here

*/
public class FlexAlignContentTest {

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

        assert css.has("align-content", "flex-start");
        assert css.has("-webkit-align-content", "flex-start");
        assert css.has("-ms-flex-line-pack", "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().alignContent.end();

        assert css.has("align-content", "flex-end");
        assert css.has("-webkit-align-content", "flex-end");
        assert css.has("-ms-flex-line-pack", "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().alignContent.center();

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

TOP

Related Classes of booton.css.MyCSS$Stylesheet

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.