WebkitBackgroundSize extends AbstractCssProperty<WebkitBackgroundSize> { public void setAsInitial() { setCssValue(INITIAL); } WebkitBackgroundSize();  WebkitBackgroundSize(final String cssValue);  WebkitBackgroundSize(final WebkitBackgroundSize backgroundSize);  WebkitBackgroundSize(final float horizontalHeight,
            final CssLengthUnit cssLengthUnit);  WebkitBackgroundSize(final float width,
            final CssLengthUnit widthCssLengthUnit, final float height,
            final CssLengthUnit heightCssLengthUnit); WebkitBackgroundSize setValue(final float width,
            final CssLengthUnit widthCssLengthUnit, final float height,
            final CssLengthUnit heightCssLengthUnit); WebkitBackgroundSize setValue(final float widthHeight,
            final CssLengthUnit cssLengthUnit); @Override String getCssName(); @Override String getCssValue(); @Override String toString(); Float getWidth(); Float getHeight(); CssLengthUnit getWidthUnit(); CssLengthUnit getHeightUnit(); @Override WebkitBackgroundSize setCssValue(final String cssValue); void setAsInitial(); void setAsInherit(); static boolean isValid(final String cssValue); static final String INITIAL; static final String INHERIT; static final String AUTO; static final String COVER; static final String CONTAIN; }
@Test public void testSetAsInitial() { WebkitBackgroundSize backgroundSize = new WebkitBackgroundSize(); assertNotNull(backgroundSize.getWidth()); assertNotNull(backgroundSize.getHeight()); assertNotNull(backgroundSize.getWidthUnit()); assertNotNull(backgroundSize.getHeightUnit()); backgroundSize.setAsInitial(); assertEquals(WebkitBackgroundSize.INITIAL, backgroundSize.getCssValue()); assertNull(backgroundSize.getWidth()); assertNull(backgroundSize.getHeight()); assertNull(backgroundSize.getWidthUnit()); assertNull(backgroundSize.getHeightUnit()); }