WebkitFlex extends AbstractCssProperty<WebkitFlex> implements StateChangeInformer<CssProperty> { public void setAsInherit() { setCssValue(INHERIT); } WebkitFlex();  WebkitFlex(final String cssValue);  WebkitFlex(final WebkitFlex webkitFlex); @Override String getCssName(); @Override String getCssValue(); @Override String toString(); @Override WebkitFlex setCssValue(final String cssValue); static boolean isValid(final String cssValue); void setAsInitial(); void setAsInherit(); void setAsAuto(); WebkitFlexBasis getWebkitFlexBasis(); WebkitFlexShrink getWebkitFlexShrink(); WebkitFlexGrow getWebkitFlexGrow(); WebkitFlex setWebkitFlexGrow(final WebkitFlexGrow webkitFlexGrow); WebkitFlex setWebkitFlexShrink(
            final WebkitFlexShrink webkitFlexShrink); WebkitFlex setWebkitFlexBasis(
            final WebkitFlexBasis webkitFlexBasis); @Override void stateChanged(final CssProperty stateChangedObject); static final String INITIAL; static final String INHERIT; static final String AUTO; }
@Test public void testSetAsInherit() { final WebkitFlex flex = new WebkitFlex("2 5 25px"); final WebkitFlexGrow flexGrow = flex.getWebkitFlexGrow(); assertNotNull(flexGrow); assertTrue(flexGrow.isAlreadyInUse()); final WebkitFlexShrink flexShrink = flex.getWebkitFlexShrink(); assertNotNull(flexShrink); assertTrue(flexShrink.isAlreadyInUse()); final WebkitFlexBasis flexBasis = flex.getWebkitFlexBasis(); assertNotNull(flexBasis); assertTrue(flexBasis.isAlreadyInUse()); flex.setAsInherit(); assertNull(flex.getWebkitFlexGrow()); assertNull(flex.getWebkitFlexShrink()); assertNull(flex.getWebkitFlexBasis()); assertFalse(flexGrow.isAlreadyInUse()); assertFalse(flexShrink.isAlreadyInUse()); assertFalse(flexBasis.isAlreadyInUse()); }