303132333435363738394041
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); }
404142434445464748495051
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); }
18192021222324252627
*/ public class ColorTest { @Test public void white() throws Exception { MyCSS css = new MyCSS(); css.font.color(255, 255, 255); assert css.has("color", "white"); }
26272829303132333435
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"); }
34353637383940414243
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%)"); }
42434445464748495051
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)"); }
50515253545556575859
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)"); }
20212223242526272829303132
*/ 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); }
31323334353637383940414243
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); }
42434445464748495051525354
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); }