Package booton.css

Examples of booton.css.MyCSS$Rule


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

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

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


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

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

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

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

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

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

*/
public class BackgroundTest {

    @Test
    public void image() throws Exception {
        MyCSS css = new MyCSS();
        css.background.image("one");

        assert css.has("background-image", "url(\"one\")");
    }
View Full Code Here

        assert css.has("background-image", "url(\"one\")");
    }

    @Test
    public void images() throws Exception {
        MyCSS css = new MyCSS();
        css.background.image("one").image("two");

        assert css.has("background-image", "url(\"one\"),url(\"two\")");
    }
View Full Code Here

        assert css.has("background-image", "url(\"one\"),url(\"two\")");
    }

    @Test
    public void imageGradient() throws Exception {
        MyCSS css = new MyCSS();
        css.background.image(new LinearGradient().color(Black, White));

        assert css.has("background-image", "-webkit-linear-gradient(black,white)");
        assert css.has("background-image", "linear-gradient(black,white)");
        assert css.no(Mozilla, IE);
    }
View Full Code Here

        assert css.no(Mozilla, IE);
    }

    @Test
    public void imageGradients() throws Exception {
        MyCSS css = new MyCSS();
        css.background.image(new LinearGradient().color(Black, White)).image(new LinearGradient().color(White, Black));

        assert css.has("background-image", "-webkit-linear-gradient(black,white),-webkit-linear-gradient(white,black)");
        assert css.has("background-image", "linear-gradient(black,white),linear-gradient(white,black)");
        assert css.no(Mozilla, IE);
    }
View Full Code Here

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

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

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

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

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

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

*/
public class DisplayTest {

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

        assert css.has("display", "block");
        assert css.noVendor();
    }
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.